/external/chromium_org/v8/src/extensions/ |
free-buffer-extension.cc | 23 v8::Handle<v8::ArrayBuffer> arrayBuffer = args[0].As<v8::ArrayBuffer>(); 24 v8::ArrayBuffer::Contents contents = arrayBuffer->Externalize();
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
SharedBufferTest.cpp | 40 #include "wtf/ArrayBuffer.h" 59 RefPtr<ArrayBuffer> arrayBuffer = sharedBuffer->getAsArrayBuffer(); 62 ASSERT_EQ(strlen(expectedConcatenation), arrayBuffer->byteLength()); 63 EXPECT_EQ(0, memcmp(expectedConcatenation, arrayBuffer->data(), strlen(expectedConcatenation))); 82 RefPtr<ArrayBuffer> arrayBuffer = sharedBuffer->getAsArrayBuffer(); 84 ASSERT_EQ(0x4000U + 0x4000U + 0x4000U, arrayBuffer->byteLength()); 87 EXPECT_EQ('a', static_cast<char*>(arrayBuffer->data())[position]); 91 EXPECT_EQ('b', static_cast<char*>(arrayBuffer->data())[position]) [all...] |
SharedBuffer.cpp | 363 PassRefPtr<ArrayBuffer> SharedBuffer::getAsArrayBuffer() const 365 RefPtr<ArrayBuffer> arrayBuffer = ArrayBuffer::createUninitialized(static_cast<unsigned>(size()), 1); 367 if (!arrayBuffer) 373 memcpy(static_cast<char*>(arrayBuffer->data()) + position, segment, segmentSize); 377 if (position != arrayBuffer->byteLength()) { 379 // Don't return the incomplete ArrayBuffer. 383 return arrayBuffer;
|
/external/chromium_org/third_party/WebKit/public/web/ |
WebSocketClient.h | 51 virtual void didReceiveArrayBuffer(const WebArrayBuffer& arrayBuffer) { }
|
WebBindings.h | 159 // Return true (success) if the given npobj is an ArrayBuffer object. 161 BLINK_EXPORT static bool getArrayBuffer(NPObject* arrayBuffer, WebArrayBuffer*);
|
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/custom/ |
V8BlobCustomHelpers.cpp | 120 ArrayBuffer* arrayBuffer = V8ArrayBuffer::toImpl(v8::Handle<v8::Object>::Cast(item)); 121 ASSERT(arrayBuffer); 122 blobData.appendArrayBuffer(arrayBuffer);
|
V8XMLHttpRequestCustom.cpp | 51 #include "wtf/ArrayBuffer.h" 151 ArrayBuffer* arrayBuffer = xmlHttpRequest->responseArrayBuffer(); 152 if (arrayBuffer) { 153 arrayBuffer->setDeallocationObserver(V8ArrayBufferDeallocationObserver::instanceTemplate()); 155 v8SetReturnValueFast(info, arrayBuffer, xmlHttpRequest); 243 ArrayBuffer* arrayBuffer = V8ArrayBuffer::toImpl(object); 244 ASSERT(arrayBuffer); 245 xmlHttpRequest->send(arrayBuffer, exceptionState) [all...] |
V8TypedArrayCustom.h | 38 #include "wtf/ArrayBuffer.h" 150 RefPtr<ArrayBuffer> buffer = impl->buffer(); 155 v8::Local<v8::Object> wrapper = V8Type::New(v8Buffer.As<v8::ArrayBuffer>(), impl->byteOffset(), Traits::length(impl.get())); 170 RefPtr<ArrayBuffer> arrayBuffer = V8ArrayBuffer::toImpl(view->Buffer()); 171 RefPtr<TypedArray> typedArray = TypedArray::create(arrayBuffer, view->ByteOffset(), Traits::length(view));
|
/external/chromium_org/third_party/WebKit/Source/modules/serviceworkers/ |
RequestInit.cpp | 18 #include "wtf/ArrayBuffer.h" 38 ArrayBuffer* arrayBuffer = V8ArrayBuffer::toImpl(v8::Handle<v8::Object>::Cast(body)); 39 ASSERT(arrayBuffer); 40 blobData->appendArrayBuffer(arrayBuffer);
|
Body.h | 40 ScriptPromise arrayBuffer(ScriptState*);
|
Body.cpp | 56 // If the size is not set, read as ArrayBuffer and create a new blob to 80 ScriptPromise Body::arrayBuffer(ScriptState* scriptState) 174 RefPtr<ArrayBuffer> buffer = m_loader->arrayBufferResult();
|
/external/chromium_org/third_party/WebKit/Source/platform/blob/ |
BlobData.cpp | 37 #include "wtf/ArrayBuffer.h" 125 void BlobData::appendArrayBuffer(const ArrayBuffer* arrayBuffer) 127 appendBytes(arrayBuffer->data(), arrayBuffer->byteLength());
|
/external/chromium_org/third_party/skia/src/gpu/gl/debug/ |
GrDebugGL.cpp | 93 void GrDebugGL::setArrayBuffer(GrBufferObj *arrayBuffer) { 103 fArrayBuffer = arrayBuffer;
|
GrDebugGL.h | 62 void setArrayBuffer(GrBufferObj *arrayBuffer);
|
/external/skia/src/gpu/gl/debug/ |
GrDebugGL.cpp | 92 void GrDebugGL::setArrayBuffer(GrBufferObj *arrayBuffer) { 102 fArrayBuffer = arrayBuffer;
|
GrDebugGL.h | 62 void setArrayBuffer(GrBufferObj *arrayBuffer);
|
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/ |
SerializedScriptValue.cpp | 70 #include "wtf/ArrayBuffer.h" 216 ArrayBufferTag = 'B', // byteLength:uint32_t, data:byte[byteLength] -> ArrayBuffer (ref) 217 ArrayBufferTransferTag = 't', // index:uint32_t -> ArrayBuffer. For ArrayBuffer transfer 218 ArrayBufferViewTag = 'V', // subtag:byte, byteOffset:uint32_t, byteLength:uint32_t -> ArrayBufferView (ref). Consumes an ArrayBuffer from the top of the deserialization stack. 537 void writeArrayBuffer(const ArrayBuffer& arrayBuffer) 540 doWriteArrayBuffer(arrayBuffer); 547 const ArrayBuffer& arrayBuffer = *arrayBufferView.buffer() [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/websockets/ |
NewWebSocketChannelImpl.cpp | 203 void NewWebSocketChannelImpl::send(const ArrayBuffer& buffer, unsigned byteOffset, unsigned byteLength) 290 NewWebSocketChannelImpl::Message::Message(PassRefPtr<ArrayBuffer> arrayBuffer) 292 , arrayBuffer(arrayBuffer) { } 331 size_t size = std::min(static_cast<size_t>(m_sendingQuota), message->arrayBuffer->byteLength() - m_sentSizeOfTopMessage); 332 final = (m_sentSizeOfTopMessage + size == message->arrayBuffer->byteLength()); 333 m_handle->send(final, type, static_cast<const char*>(message->arrayBuffer->data()) + m_sentSizeOfTopMessage, size); 537 void NewWebSocketChannelImpl::didFinishLoadingBlob(PassRefPtr<ArrayBuffer> buffer)
|
DOMWebSocket.cpp | 55 #include "wtf/ArrayBuffer.h" 394 void DOMWebSocket::send(ArrayBuffer* binaryData, ExceptionState& exceptionState) 396 WTF_LOG(Network, "WebSocket %p send() Sending ArrayBuffer %p", this, binaryData); 427 RefPtr<ArrayBuffer> arrayBuffer(arrayBufferView->buffer()); 428 m_channel->send(*arrayBuffer, arrayBufferView->byteOffset(), arrayBufferView->byteLength()); 524 return "arraybuffer"; 536 if (binaryType == "arraybuffer") { 625 RefPtr<ArrayBuffer> arrayBuffer = ArrayBuffer::create(binaryData->data(), binaryData->size()) [all...] |
NewWebSocketChannelImpl.h | 42 #include "wtf/ArrayBuffer.h" 77 virtual void send(const ArrayBuffer&, unsigned byteOffset, unsigned byteLength) OVERRIDE; 103 explicit Message(PassRefPtr<ArrayBuffer>); 111 RefPtr<ArrayBuffer> arrayBuffer; 143 void didFinishLoadingBlob(PassRefPtr<ArrayBuffer>);
|
/external/chromium_org/third_party/WebKit/Source/web/ |
WebBindings.cpp | 276 static bool getArrayBufferImpl(NPObject* object, WebArrayBuffer* arrayBuffer, v8::Isolate* isolate) 289 ArrayBuffer* native = V8ArrayBuffer::hasInstance(v8Object, isolate) ? V8ArrayBuffer::toImpl(v8Object) : 0; 293 *arrayBuffer = WebArrayBuffer(native); 345 bool WebBindings::getArrayBuffer(NPObject* arrayBuffer, WebArrayBuffer* webArrayBuffer) 347 return getArrayBufferImpl(arrayBuffer, webArrayBuffer, v8::Isolate::GetCurrent());
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/liblouis_nacl/ |
liblouis.js | 275 * @param {function(ArrayBuffer, Array.<number>, Array.<number>)} callback 307 * @param {!ArrayBuffer} cells Cells to be translated. 333 * Decodes a hexadecimal string to an {@code ArrayBuffer}. 335 * @return {!ArrayBuffer} Decoded binary data. 352 * Encodes an {@code ArrayBuffer} in hexadecimal. 353 * @param {!ArrayBuffer} arrayBuffer Binary data. 357 cvox.LibLouis.Translator.encodeHexString_ = function(arrayBuffer) { 358 var array = new Uint8Array(arrayBuffer);
|
/external/chromium_org/remoting/webapp/unittests/ |
base_unittest.js | 242 function toJsArray(arrayBuffer) { 244 var array = new Uint8Array(arrayBuffer);
|
/external/chromium_org/ui/file_manager/gallery/js/image_editor/ |
image_encoder.js | 89 function appendSlice(arrayBuffer) { 90 slices.push(new DataView(arrayBuffer)); 158 * @return {ArrayBuffer} // TODO(JSDOC). 226 * @return {ArrayBuffer} // TODO(JSDOC).
|
/external/chromium_org/ui/file_manager/file_manager/foreground/js/metadata/ |
byte_reader.js | 9 * @param {ArrayBuffer} arrayBuffer An array of buffers to be read from. 13 function ByteReader(arrayBuffer, opt_offset, opt_length) { 15 opt_length = opt_length || (arrayBuffer.byteLength - opt_offset); 16 this.view_ = new DataView(arrayBuffer, opt_offset, opt_length);
|