HomeSort by relevance Sort by last modified time
    Searched refs:arrayBuffer (Results 1 - 25 of 34) sorted by null

1 2

  /external/chromium_org/third_party/WebKit/Source/bindings/tests/idls/
TestOverloadedConstructors.idl 29 Constructor(ArrayBuffer arrayBuffer),
  /external/chromium_org/third_party/WebKit/public/web/
WebSocketClient.h 51 virtual void didReceiveArrayBuffer(const WebArrayBuffer& arrayBuffer) { }
WebBindings.h 154 // Return true (success) if the given npobj is an ArrayBuffer object.
156 BLINK_EXPORT static bool getArrayBuffer(NPObject* arrayBuffer, WebArrayBuffer*);
  /external/chromium_org/third_party/WebKit/Source/platform/
SharedBufferTest.cpp 35 #include "wtf/ArrayBuffer.h"
54 RefPtr<ArrayBuffer> arrayBuffer = sharedBuffer->getAsArrayBuffer();
57 ASSERT_EQ(strlen(expectedConcatenation), arrayBuffer->byteLength());
58 EXPECT_EQ(0, memcmp(expectedConcatenation, arrayBuffer->data(), strlen(expectedConcatenation)));
119 RefPtr<ArrayBuffer> arrayBuffer = sharedBuffer->getAsArrayBuffer();
121 ASSERT_EQ(0x4000U + 0x4000U + 0x4000U, arrayBuffer->byteLength());
124 EXPECT_EQ('a', static_cast<char*>(arrayBuffer->data())[position]);
128 EXPECT_EQ('b', static_cast<char*>(arrayBuffer->data())[position])
    [all...]
SharedBuffer.cpp 420 PassRefPtr<ArrayBuffer> SharedBuffer::getAsArrayBuffer() const
422 RefPtr<ArrayBuffer> arrayBuffer = ArrayBuffer::createUninitialized(static_cast<unsigned>(size()), 1);
427 memcpy(static_cast<char*>(arrayBuffer->data()) + position, segment, segmentSize);
431 if (position != arrayBuffer->byteLength()) {
433 // Don't return the incomplete ArrayBuffer.
437 return arrayBuffer;
  /external/chromium_org/v8/src/extensions/
free-buffer-extension.cc 45 v8::Handle<v8::ArrayBuffer> arrayBuffer = args[0].As<v8::ArrayBuffer>();
46 v8::ArrayBuffer::Contents contents = arrayBuffer->Externalize();
  /external/chromium_org/third_party/WebKit/Source/core/fileapi/
BlobBuilder.cpp 38 #include "wtf/ArrayBuffer.h"
77 void BlobBuilder::append(ArrayBuffer* arrayBuffer)
79 if (!arrayBuffer)
82 appendBytesData(arrayBuffer->data(), arrayBuffer->byteLength());
  /external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/
V8BlobCustomHelpers.cpp 120 ArrayBuffer* arrayBuffer = V8ArrayBuffer::toNative(v8::Handle<v8::Object>::Cast(item));
121 ASSERT(arrayBuffer);
122 blobBuilder.append(arrayBuffer);
V8XMLHttpRequestCustom.cpp 50 #include "wtf/ArrayBuffer.h"
145 ArrayBuffer* arrayBuffer = xmlHttpRequest->responseArrayBuffer();
146 if (arrayBuffer) {
147 arrayBuffer->setDeallocationObserver(V8ArrayBufferDeallocationObserver::instanceTemplate());
149 v8SetReturnValueFast(info, arrayBuffer, xmlHttpRequest);
238 ArrayBuffer* arrayBuffer = V8ArrayBuffer::toNative(object);
239 ASSERT(arrayBuffer);
240 xmlHttpRequest->send(arrayBuffer, exceptionState)
    [all...]
V8TypedArrayCustom.h 38 #include "wtf/ArrayBuffer.h"
147 RefPtr<ArrayBuffer> buffer = impl->buffer();
152 v8::Local<v8::Object> wrapper = V8Type::New(v8Buffer.As<v8::ArrayBuffer>(), impl->byteOffset(), Traits::length(impl.get()));
167 RefPtr<ArrayBuffer> arrayBuffer = V8ArrayBuffer::toNative(view->Buffer());
168 RefPtr<TypedArray> typedArray = TypedArray::create(arrayBuffer, view->ByteOffset(), Traits::length(view));
  /external/chromium_org/third_party/WebKit/Source/bindings/v8/
SerializedScriptValue.cpp 64 #include "wtf/ArrayBuffer.h"
201 ArrayBufferTag = 'B', // byteLength:uint32_t, data:byte[byteLength] -> ArrayBuffer (ref)
202 ArrayBufferTransferTag = 't', // index:uint32_t -> ArrayBuffer. For ArrayBuffer transfer
203 ArrayBufferViewTag = 'V', // subtag:byte, byteOffset:uint32_t, byteLength:uint32_t -> ArrayBufferView (ref). Consumes an ArrayBuffer from the top of the deserialization stack.
418 void writeArrayBuffer(const ArrayBuffer& arrayBuffer)
421 doWriteArrayBuffer(arrayBuffer);
428 const ArrayBuffer& arrayBuffer = *arrayBufferView.buffer()
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/websockets/
NewWebSocketChannelImpl.cpp 188 WebSocketChannel::SendResult NewWebSocketChannelImpl::send(const ArrayBuffer& buffer, unsigned byteOffset, unsigned byteLength)
263 NewWebSocketChannelImpl::Message::Message(PassRefPtr<ArrayBuffer> arrayBuffer)
265 , arrayBuffer(arrayBuffer) { }
292 size_t size = std::min(static_cast<size_t>(m_sendingQuota), message.arrayBuffer->byteLength() - m_sentSizeOfTopMessage);
293 final = (m_sentSizeOfTopMessage + size == message.arrayBuffer->byteLength());
294 m_handle->send(final, type, static_cast<const char*>(message.arrayBuffer->data()) + m_sentSizeOfTopMessage, size);
463 void NewWebSocketChannelImpl::didFinishLoadingBlob(PassRefPtr<ArrayBuffer> buffer)
NewWebSocketChannelImpl.h 42 #include "wtf/ArrayBuffer.h"
83 virtual WebSocketChannel::SendResult send(const ArrayBuffer&, unsigned byteOffset, unsigned byteLength) OVERRIDE;
109 explicit Message(PassRefPtr<ArrayBuffer>);
113 RefPtr<ArrayBuffer> arrayBuffer;
141 void didFinishLoadingBlob(PassRefPtr<ArrayBuffer>);
WebSocket.cpp 53 #include "wtf/ArrayBuffer.h"
393 void WebSocket::send(ArrayBuffer* binaryData, ExceptionState& exceptionState)
395 WTF_LOG(Network, "WebSocket %p send() Sending ArrayBuffer %p", this, binaryData);
422 RefPtr<ArrayBuffer> arrayBuffer(arrayBufferView->buffer());
423 handleSendResult(m_channel->send(*arrayBuffer, arrayBufferView->byteOffset(), arrayBufferView->byteLength()), exceptionState);
517 return "arraybuffer";
529 if (binaryType == "arraybuffer") {
624 m_eventQueue->dispatch(MessageEvent::create(ArrayBuffer::create(binaryData->data(), binaryData->size()), SecurityOrigin::create(m_url)->toString()));
  /external/chromium_org/third_party/skia/src/gpu/gl/debug/
GrDebugGL.cpp 92 void GrDebugGL::setArrayBuffer(GrBufferObj *arrayBuffer) {
102 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/web/
WebBindings.cpp 272 static bool getArrayBufferImpl(NPObject* object, WebArrayBuffer* arrayBuffer, v8::Isolate* isolate)
285 ArrayBuffer* native = V8ArrayBuffer::hasInstanceInAnyWorld(v8Object, isolate) ? V8ArrayBuffer::toNative(v8Object) : 0;
289 *arrayBuffer = WebArrayBuffer(native);
341 bool WebBindings::getArrayBuffer(NPObject* arrayBuffer, WebArrayBuffer* webArrayBuffer)
343 return getArrayBufferImpl(arrayBuffer, webArrayBuffer, v8::Isolate::GetCurrent());
  /external/chromium_org/third_party/WebKit/Source/modules/mediastream/
RTCDataChannel.cpp 36 #include "wtf/ArrayBuffer.h"
156 return "arraybuffer";
166 else if (binaryType == "arraybuffer")
184 void RTCDataChannel::send(PassRefPtr<ArrayBuffer> prpData, ExceptionState& exceptionState)
191 RefPtr<ArrayBuffer> data = prpData;
207 RefPtr<ArrayBuffer> arrayBuffer(data->buffer());
208 send(arrayBuffer.release(), exceptionState);
262 RefPtr<ArrayBuffer> buffer = ArrayBuffer::create(data, dataLength)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/bindings/tests/results/
V8TestOverloadedConstructors.cpp 77 V8TRYCATCH_VOID(ArrayBuffer*, arrayBuffer, info[0]->IsArrayBuffer() ? V8ArrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0);
78 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create(arrayBuffer);
  /external/chromium_org/third_party/WebKit/Source/modules/webaudio/
AudioContext.cpp 71 #include "wtf/ArrayBuffer.h"
329 PassRefPtr<AudioBuffer> AudioContext::createBuffer(ArrayBuffer* arrayBuffer, bool mixToMono, ExceptionState& exceptionState)
331 ASSERT(arrayBuffer);
332 if (!arrayBuffer) {
335 "invalid ArrayBuffer.");
339 RefPtr<AudioBuffer> audioBuffer = AudioBuffer::createFromAudioFileData(arrayBuffer->data(), arrayBuffer->byteLength(), mixToMono, sampleRate());
343 "invalid audio data in ArrayBuffer.");
350 void AudioContext::decodeAudioData(ArrayBuffer* audioData, PassOwnPtr<AudioBufferCallback> successCallback, PassOwnPtr<AudioBufferCallback> error (…)
    [all...]
  /external/chromium_org/chrome/browser/resources/file_manager/foreground/js/metadata/
byte_reader.js 9 * @param {ArrayBuffer} arrayBuffer // TODO(JSDOC).
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);
  /external/chromium_org/chrome/browser/resources/file_manager/foreground/js/image_editor/
image_encoder.js 88 function appendSlice(arrayBuffer) {
89 slices.push(new DataView(arrayBuffer));
157 * @return {ArrayBuffer} // TODO(JSDOC).
224 * @return {ArrayBuffer} // TODO(JSDOC).
exif_encoder.js 183 * @return {ArrayBuffer} serialized metadata ready to write to an image file.
413 * @param {ArrayBuffer} arrayBuffer Underlying buffer to use.
419 function ByteWriter(arrayBuffer, offset, length) {
420 length = length || (arrayBuffer.byteLength - offset);
421 this.view_ = new DataView(arrayBuffer, offset, length);

Completed in 660 milliseconds

1 2