Home
last modified time | relevance | path

Searched refs:ArrayBuffer (Results 1 – 25 of 219) sorted by relevance

123456789

/external/chromium_org/third_party/WebKit/Source/wtf/
DArrayBuffer.h37 class ArrayBuffer; variable
40 class WTF_EXPORT ArrayBuffer : public RefCounted<ArrayBuffer> {
42 static inline PassRefPtr<ArrayBuffer> create(unsigned numElements, unsigned elementByteSize);
43 static inline PassRefPtr<ArrayBuffer> create(ArrayBuffer*);
44 static inline PassRefPtr<ArrayBuffer> create(const void* source, unsigned byteLength);
45 static inline PassRefPtr<ArrayBuffer> create(ArrayBufferContents&);
48 …static inline PassRefPtr<ArrayBuffer> createUninitialized(unsigned numElements, unsigned elementBy…
56 inline PassRefPtr<ArrayBuffer> slice(int begin, int end) const;
57 inline PassRefPtr<ArrayBuffer> slice(int begin) const;
67 ~ArrayBuffer() { } in ~ArrayBuffer()
[all …]
DTypedArrayBase.h85 TypedArrayBase(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in TypedArrayBase()
94 RefPtr<ArrayBuffer> buffer = ArrayBuffer::create(length, sizeof(T)); in create()
111 static PassRefPtr<Subclass> create(PassRefPtr<ArrayBuffer> buffer, in create()
115 RefPtr<ArrayBuffer> buf(buffer); in create()
125 RefPtr<ArrayBuffer> buffer = ArrayBuffer::createUninitialized(length, sizeof(T)); in createUninitialized()
DUint32Array.h34 class ArrayBuffer; variable
40 …static inline PassRefPtr<Uint32Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigne…
58 inline Uint32Array(PassRefPtr<ArrayBuffer>,
75 PassRefPtr<Uint32Array> Uint32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, un… in create()
85 Uint32Array::Uint32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in Uint32Array()
DUint8Array.h34 class ArrayBuffer; variable
40 …static inline PassRefPtr<Uint8Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned…
58 inline Uint8Array(PassRefPtr<ArrayBuffer>,
75 PassRefPtr<Uint8Array> Uint8Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsi… in create()
85 Uint8Array::Uint8Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in Uint8Array()
DInt16Array.h33 class ArrayBuffer; variable
39 …static inline PassRefPtr<Int16Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned…
57 inline Int16Array(PassRefPtr<ArrayBuffer>,
74 PassRefPtr<Int16Array> Int16Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsi… in create()
84 Int16Array::Int16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in Int16Array()
DInt8Array.h34 class ArrayBuffer; variable
40 …static inline PassRefPtr<Int8Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned …
58 inline Int8Array(PassRefPtr<ArrayBuffer>,
75 PassRefPtr<Int8Array> Int8Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsign… in create()
85 Int8Array::Int8Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in Int8Array()
DUint16Array.h34 class ArrayBuffer; variable
40 …static inline PassRefPtr<Uint16Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigne…
58 inline Uint16Array(PassRefPtr<ArrayBuffer>,
75 PassRefPtr<Uint16Array> Uint16Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, un… in create()
85 Uint16Array::Uint16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in Uint16Array()
DArrayBuffer.cpp34 bool ArrayBuffer::transfer(ArrayBufferContents& result) in transfer()
36 RefPtr<ArrayBuffer> keepAlive(this); in transfer()
69 void ArrayBuffer::addView(ArrayBufferView* view) in addView()
79 void ArrayBuffer::removeView(ArrayBufferView* view) in removeView()
/external/deqp/framework/delibs/decpp/
DdeArrayBuffer.hpp48 class ArrayBuffer class
51 ArrayBuffer (void) throw();
52 ArrayBuffer (size_t numElements);
53 ArrayBuffer (const ArrayBuffer& other);
54 ~ArrayBuffer (void) throw();
55 ArrayBuffer& operator= (const ArrayBuffer& other);
59 void swap (ArrayBuffer& other) throw();
74 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (void) throw() in ArrayBuffer() function in de::ArrayBuffer
81 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (size_t numElements) in ArrayBuffer() function in de::ArrayBuffer
100 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (const ArrayBuffer<T,Alignment,Stride>& other) in ArrayBuffer() function in de::ArrayBuffer
[all …]
DdeArrayBuffer.cpp71 de::ArrayBuffer<int> buf; in ArrayBuffer_selfTest()
78 de::ArrayBuffer<int> buf(4); in ArrayBuffer_selfTest()
85 de::ArrayBuffer<int> originalBuf(4); in ArrayBuffer_selfTest()
91 de::ArrayBuffer<int> targetBuf(originalBuf); in ArrayBuffer_selfTest()
106 de::ArrayBuffer<int> originalBuf(4); in ArrayBuffer_selfTest()
112 de::ArrayBuffer<int> targetBuf(1); in ArrayBuffer_selfTest()
129 de::ArrayBuffer<int> buf(4); in ArrayBuffer_selfTest()
137 de::ArrayBuffer<int> buf(4); in ArrayBuffer_selfTest()
145 de::ArrayBuffer<int> buf(4); in ArrayBuffer_selfTest()
171 de::ArrayBuffer<int> buf; in ArrayBuffer_selfTest()
[all …]
/external/chromium_org/gin/
Darray_buffer.cc62 class ArrayBuffer::Private : public base::RefCounted<ArrayBuffer::Private> {
65 v8::Handle<v8::ArrayBuffer> array);
73 Private(v8::Isolate* isolate, v8::Handle<v8::ArrayBuffer> array);
77 const v8::WeakCallbackData<v8::ArrayBuffer, Private>& data);
79 v8::Persistent<v8::ArrayBuffer> array_buffer_;
86 scoped_refptr<ArrayBuffer::Private> ArrayBuffer::Private::From( in From()
87 v8::Isolate* isolate, v8::Handle<v8::ArrayBuffer> array) { in From()
98 ArrayBuffer::Private::Private(v8::Isolate* isolate, in Private()
99 v8::Handle<v8::ArrayBuffer> array) in Private()
103 v8::ArrayBuffer::Contents contents = array->Externalize(); in Private()
[all …]
Darray_buffer.h17 class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
26 class GIN_EXPORT ArrayBuffer {
28 ArrayBuffer();
29 ArrayBuffer(v8::Isolate* isolate, v8::Handle<v8::ArrayBuffer> buffer);
30 ~ArrayBuffer();
31 ArrayBuffer& operator=(const ArrayBuffer& other);
43 DISALLOW_COPY(ArrayBuffer);
47 struct GIN_EXPORT Converter<ArrayBuffer> {
49 ArrayBuffer* out);
65 ArrayBuffer array_buffer_;
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/custom/
DV8ArrayBufferCustom.h55 static ArrayBuffer* toImpl(v8::Handle<v8::Object>);
56 static ArrayBuffer* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>);
63 static inline ScriptWrappableBase* toScriptWrappableBase(ArrayBuffer* impl) in toScriptWrappableBase()
68 static inline ArrayBuffer* toImpl(ScriptWrappableBase* internalPointer) in toImpl()
70 return reinterpret_cast<ArrayBuffer*>(internalPointer); in toImpl()
74 …friend v8::Handle<v8::Object> wrap(ArrayBuffer*, v8::Handle<v8::Object> creationContext, v8::Isola…
75 …static v8::Handle<v8::Object> createWrapper(PassRefPtr<ArrayBuffer>, v8::Handle<v8::Object> creati…
78 inline v8::Handle<v8::Object> wrap(ArrayBuffer* impl, v8::Handle<v8::Object> creationContext, v8::I… in wrap()
85 inline v8::Handle<v8::Value> toV8(ArrayBuffer* impl, v8::Handle<v8::Object> creationContext, v8::Is… in toV8()
96 inline void v8SetReturnValue(const CallbackInfo& info, ArrayBuffer* impl) in v8SetReturnValue()
[all …]
DV8ArrayBufferCustom.cpp82 v8::Handle<v8::Object> V8ArrayBuffer::createWrapper(PassRefPtr<ArrayBuffer> impl, v8::Handle<v8::Ob… in createWrapper()
87 … v8::Handle<v8::Object> wrapper = v8::ArrayBuffer::New(isolate, impl->data(), impl->byteLength()); in createWrapper()
94 ArrayBuffer* V8ArrayBuffer::toImpl(v8::Handle<v8::Object> object) in toImpl()
97 v8::Local<v8::ArrayBuffer> v8buffer = object.As<v8::ArrayBuffer>(); in toImpl()
100 return reinterpret_cast<ArrayBuffer*>(blink::toScriptWrappableBase(object)); in toImpl()
103 v8::ArrayBuffer::Contents v8Contents = v8buffer->Externalize(); in toImpl()
106 RefPtr<ArrayBuffer> buffer = ArrayBuffer::create(contents); in toImpl()
109 return reinterpret_cast<ArrayBuffer*>(blink::toScriptWrappableBase(object)); in toImpl()
112 ArrayBuffer* V8ArrayBuffer::toImplWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) in toImplWithTypeCheck()
118 v8::Handle<v8::Value> toV8NoInline(ArrayBuffer* impl, v8::Handle<v8::Object> creationContext, v8::I… in toV8NoInline()
/external/chromium_org/v8/test/mjsunit/regress/
Dregress-353004.js7 var buffer1 = new ArrayBuffer(100 * 1024);
16 var buffer2 = new ArrayBuffer(100 * 1024);
26 var buffer3 = new ArrayBuffer(100 * 1024 * 1024);
34 var buffer4 = new ArrayBuffer(100 * 1024);
43 var buffer5 = new ArrayBuffer(100 * 1024);
51 var buffer7 = new ArrayBuffer(100 * 1024 * 1024);
58 var buffer9 = new ArrayBuffer(1024);
67 var buffer11 = new ArrayBuffer(1024);
/external/chromium_org/v8/test/cctest/
Dtest-weaktypedarrays.cc95 v8::Handle<v8::ArrayBuffer> ab1 = in TEST()
96 v8::ArrayBuffer::New(context->GetIsolate(), 256); in TEST()
99 v8::Handle<v8::ArrayBuffer> ab2 = in TEST()
100 v8::ArrayBuffer::New(context->GetIsolate(), 128); in TEST()
141 v8::Handle<v8::ArrayBuffer> ab1 = in TEST()
142 v8::Handle<v8::ArrayBuffer>::Cast(CompileRun("ab1")); in TEST()
143 v8::Handle<v8::ArrayBuffer> ab2 = in TEST()
144 v8::Handle<v8::ArrayBuffer>::Cast(CompileRun("ab2")); in TEST()
145 v8::Handle<v8::ArrayBuffer> ab3 = in TEST()
146 v8::Handle<v8::ArrayBuffer>::Cast(CompileRun("ab3")); in TEST()
[all …]
/external/chromium_org/ppapi/api/
Dppb_var_array_buffer.idl29 * @param[in] size_in_bytes The size of the <code>ArrayBuffer</code> to
40 * given <code>ArrayBuffer</code> var. On failure, <code>byte_length</code>
44 * <code>ArrayBuffer</code> even if the <code>ArrayBuffer</code> is not
47 * @param[in] array The <code>ArrayBuffer</code> whose length should be
51 * <code>ArrayBuffer</code> on success.
58 * Map() maps the <code>ArrayBuffer</code> in to the module's address space
60 * <code>ArrayBuffer PP_Var</code>. ArrayBuffers are copied when transmitted,
66 * it only once when looping over an <code>ArrayBuffer</code>.
80 * @param[in] array The <code>ArrayBuffer</code> whose internal buffer should
84 * <code>ArrayBuffer</code>. Returns <code>NULL</code>
[all …]
/external/chromium_org/third_party/WebKit/Source/modules/encryptedmedia/
DMediaKeySession.cpp88 const RefPtr<ArrayBuffer> data() const in data()
100 …ontentDecryptionModuleResult* result, const String& initDataType, PassRefPtr<ArrayBuffer> initData) in CreatePendingGenerateRequest()
107 …ingAction* CreatePendingUpdate(ContentDecryptionModuleResult* result, PassRefPtr<ArrayBuffer> data) in CreatePendingUpdate()
117 return new PendingAction(Release, result, String(), PassRefPtr<ArrayBuffer>()); in CreatePendingRelease()
130 …e, ContentDecryptionModuleResult* result, const String& initDataType, PassRefPtr<ArrayBuffer> data) in PendingAction()
141 const RefPtr<ArrayBuffer> m_data;
283 …ssion::generateRequest(ScriptState* scriptState, const String& initDataType, ArrayBuffer* initData) in generateRequest()
285 … RefPtr<ArrayBuffer> initDataCopy = ArrayBuffer::create(initData->data(), initData->byteLength()); in generateRequest()
291 …RefPtr<ArrayBuffer> initDataCopy = ArrayBuffer::create(initData->baseAddress(), initData->byteLeng… in generateRequest()
295 …estInternal(ScriptState* scriptState, const String& initDataType, PassRefPtr<ArrayBuffer> initData) in generateRequestInternal()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/exported/
DWebArrayBuffer.cpp41 RefPtr<ArrayBuffer> buffer = ArrayBuffer::create(numElements, elementByteSize); in create()
69 WebArrayBuffer::WebArrayBuffer(const PassRefPtr<ArrayBuffer>& blob) in WebArrayBuffer()
74 WebArrayBuffer& WebArrayBuffer::operator=(const PassRefPtr<ArrayBuffer>& blob) in operator =()
80 WebArrayBuffer::operator PassRefPtr<ArrayBuffer>() const in operator PassRefPtr<ArrayBuffer>()
/external/chromium_org/v8/test/mjsunit/harmony/
Dtypedarrays.js31 var ab = new ArrayBuffer(param);
44 assertThrows(function() { new ArrayBuffer(-10); }, RangeError);
45 assertThrows(function() { new ArrayBuffer(-2.567); }, RangeError);
53 var ab = new ArrayBuffer();
60 var ab = new ArrayBuffer(1024);
69 var ab = new ArrayBuffer(initialLen);
83 var ab = new ArrayBuffer(1024);
123 var ab = new ArrayBuffer(256*elementSize);
126 assertTrue(ArrayBuffer.isView(a0));
218 var unalignedArrayBuffer = new ArrayBuffer(10*elementSize + 1);
[all …]
/external/chromium_org/third_party/WebKit/public/platform/
DWebArrayBuffer.h42 namespace WTF { class ArrayBuffer; } variable
72 BLINK_PLATFORM_EXPORT WebArrayBuffer(const WTF::PassRefPtr<WTF::ArrayBuffer>&);
73 BLINK_PLATFORM_EXPORT WebArrayBuffer& operator=(const WTF::PassRefPtr<WTF::ArrayBuffer>&);
74 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<WTF::ArrayBuffer>() const;
78 WebPrivatePtr<WTF::ArrayBuffer> m_private;
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
DAsyncAudioDecoder.cpp52 void AsyncAudioDecoder::decodeAsync(ArrayBuffer* audioData, float sampleRate, AudioBufferCallback* … in decodeAsync()
60 RefPtr<ArrayBuffer> audioDataRef(audioData); in decodeAsync()
66 void AsyncAudioDecoder::decode(ArrayBuffer* audioData, float sampleRate, AudioBufferCallback* succe… in decode()
75 void AsyncAudioDecoder::notifyComplete(ArrayBuffer* audioData, AudioBufferCallback* successCallback… in notifyComplete()
78 RefPtr<ArrayBuffer> audioDataRef = adoptRef(audioData); in notifyComplete()
/external/chromium_org/chrome/common/extensions/api/
Denterprise_platform_keys_internal.idl16 callback GenerateKeyCallback = void(ArrayBuffer publicKey);
20 callback SignCallback = void(ArrayBuffer signature);
48 // TODO: Instead of ArrayBuffer should be (ArrayBuffer or ArrayBufferView),
49 // or at least (ArrayBuffer or Uint8Array).
51 ArrayBuffer publicKey,
53 ArrayBuffer data,
/external/chromium_org/third_party/WebKit/Source/bindings/modules/v8/custom/
DV8SubtleCryptoCustom.cpp30 …TONATIVE_VOID(ArrayBuffer*, signature, info[2]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Handle… in verify1Method()
31 …TONATIVE_VOID(ArrayBuffer*, data, info[3]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Handle<v8:: in verify1Method()
45 …TONATIVE_VOID(ArrayBuffer*, signature, info[2]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Handle… in verify2Method()
61 …TONATIVE_VOID(ArrayBuffer*, data, info[3]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Handle<v8:: in verify3Method()
/external/chromium_org/third_party/WebKit/Source/modules/websockets/
DNewWebSocketChannelImplTest.cpp406 RefPtr<ArrayBuffer> fooBuffer = ArrayBuffer::create("foo", 3); in TEST_F()
426 RefPtr<ArrayBuffer> foobarBuffer = ArrayBuffer::create("foobar", 6); in TEST_F()
427 RefPtr<ArrayBuffer> qbazuxBuffer = ArrayBuffer::create("qbazux", 6); in TEST_F()
451 RefPtr<ArrayBuffer> b = ArrayBuffer::create("\0ar", 3); in TEST_F()
455 RefPtr<ArrayBuffer> b = ArrayBuffer::create("b\0z", 3); in TEST_F()
459 RefPtr<ArrayBuffer> b = ArrayBuffer::create("qu\0", 3); in TEST_F()
463 RefPtr<ArrayBuffer> b = ArrayBuffer::create("\0\0\0", 3); in TEST_F()
478 RefPtr<ArrayBuffer> b = ArrayBuffer::create("\xe7\x8b\x90", 3); in TEST_F()
492 RefPtr<ArrayBuffer> b = ArrayBuffer::create("\x80\xff\xe7", 3); in TEST_F()
512 …RefPtr<ArrayBuffer> b = ArrayBuffer::create("\xe7\x8b\x90\xe7\x8b\x90\xe7\x8b\x90\xe7\x8b\x90\xe7\… in TEST_F()

123456789