/external/chromium_org/ppapi/shared_impl/ |
D | var_tracker.cc | 202 scoped_refptr<ArrayBufferVar> array_buffer(CreateArrayBuffer(size_in_bytes)); in MakeArrayBufferPPVar() local 203 if (!array_buffer.get()) in MakeArrayBufferPPVar() 205 return array_buffer->GetPPVar(); in MakeArrayBufferPPVar() 212 ArrayBufferVar* array_buffer = MakeArrayBufferVar(size_in_bytes, data); in MakeArrayBufferPPVar() local 213 return array_buffer ? array_buffer->GetPPVar() : PP_MakeNull(); in MakeArrayBufferPPVar() 220 ArrayBufferVar* array_buffer(CreateArrayBuffer(size_in_bytes)); in MakeArrayBufferVar() local 221 if (!array_buffer) in MakeArrayBufferVar() 223 memcpy(array_buffer->Map(), data, size_in_bytes); in MakeArrayBufferVar() 224 return array_buffer; in MakeArrayBufferVar() 231 scoped_refptr<ArrayBufferVar> array_buffer( in MakeArrayBufferPPVar() local [all …]
|
D | var_value_conversions.cc | 122 ArrayBufferVar* array_buffer = ArrayBufferVar::FromPPVar(var); in CreateValueFromVarHelper() local 123 if (!array_buffer) in CreateValueFromVarHelper() 128 static_cast<const char*>(array_buffer->Map()), in CreateValueFromVarHelper() 129 array_buffer->ByteLength()); in CreateValueFromVarHelper() 130 array_buffer->Unmap(); in CreateValueFromVarHelper()
|
/external/chromium_org/native_client_sdk/src/examples/api/websocket/ |
D | websocket.cc | 120 pp::VarArrayBuffer array_buffer(size); in SendAsBinary() local 121 char* data = static_cast<char*>(array_buffer.Map()); in SendAsBinary() 124 array_buffer.Unmap(); in SendAsBinary() 125 websocket_->SendMessage(array_buffer); in SendAsBinary() 126 std::string message_text = ArrayToString(array_buffer); in SendAsBinary() 160 pp::VarArrayBuffer array_buffer(receive_var_); in OnReceiveCompletion() local 161 std::string message_text = ArrayToString(array_buffer); in OnReceiveCompletion()
|
/external/chromium_org/ppapi/tests/ |
D | test_flash_clipboard.cc | 140 pp::VarArrayBuffer array_buffer(rtf_string.size()); in TestReadWriteRTF() local 141 char* bytes = static_cast<char*>(array_buffer.Map()); in TestReadWriteRTF() 144 std::vector<pp::Var> data_vector(1, array_buffer); in TestReadWriteRTF() 161 ASSERT_TRUE(array_buffer_result.ByteLength() == array_buffer.ByteLength()); in TestReadWriteRTF() 163 ASSERT_TRUE(std::equal(bytes, bytes + array_buffer.ByteLength(), in TestReadWriteRTF() 171 pp::VarArrayBuffer array_buffer(custom_data.size()); in TestReadWriteCustomData() local 172 char* bytes = static_cast<char*>(array_buffer.Map()); in TestReadWriteCustomData() 179 std::vector<pp::Var> data_vector(1, array_buffer); in TestReadWriteCustomData() 196 ASSERT_EQ(array_buffer_result.ByteLength(), array_buffer.ByteLength()); in TestReadWriteCustomData() 198 ASSERT_TRUE(std::equal(bytes, bytes + array_buffer.ByteLength(), in TestReadWriteCustomData()
|
D | test_x509_certificate_private.cc | 48 pp::VarArrayBuffer array_buffer(field_value); in FieldMatchesBuffer() local 49 char* bytes = static_cast<char*>(array_buffer.Map()); in FieldMatchesBuffer() 50 uint32_t length = array_buffer.ByteLength(); in FieldMatchesBuffer()
|
/external/chromium_org/ppapi/tests/extensions/socket/ |
D | test_socket.cc | 166 VarArrayBuffer array_buffer = ConvertToArrayBuffer(kSendContents); in TestServerSocket() local 167 callback.WaitForResult(socket_.Write(client_socket_id, array_buffer, in TestServerSocket() 616 VarArrayBuffer array_buffer(data.size()); in ConvertToArrayBuffer() local 617 memcpy(array_buffer.Map(), data.c_str(), data.size()); in ConvertToArrayBuffer() 618 array_buffer.Unmap(); in ConvertToArrayBuffer() 619 return array_buffer; in ConvertToArrayBuffer() 622 std::string ConvertFromArrayBuffer(VarArrayBuffer* array_buffer) { in ConvertFromArrayBuffer() argument 623 std::string result(static_cast<const char*>(array_buffer->Map()), in ConvertFromArrayBuffer() 624 array_buffer->ByteLength()); in ConvertFromArrayBuffer() 625 array_buffer->Unmap(); in ConvertFromArrayBuffer()
|
/external/chromium_org/mojo/apps/js/bindings/ |
D | core.cc | 60 v8::Handle<v8::ArrayBuffer> array_buffer = in ReadMessage() local 65 ConvertFromV8(args.isolate(), array_buffer, &buffer); in ReadMessage() 80 dictionary.Set("buffer", array_buffer); in ReadMessage()
|
/external/chromium_org/ppapi/shared_impl/private/ |
D | ppb_x509_certificate_private_shared.cc | 69 PP_Var array_buffer = in GetFieldAsPPVar() local 72 return array_buffer; in GetFieldAsPPVar()
|
/external/chromium_org/gin/ |
D | gin.gyp | 27 'array_buffer.cc', 28 'array_buffer.h',
|
D | gin.target.linux-mips.mk | 28 gin/array_buffer.cc \
|
D | gin.target.linux-x86.mk | 28 gin/array_buffer.cc \
|
D | gin.target.darwin-mips.mk | 28 gin/array_buffer.cc \
|
D | gin.target.darwin-arm.mk | 28 gin/array_buffer.cc \
|
D | gin.target.darwin-x86.mk | 28 gin/array_buffer.cc \
|
D | gin.target.linux-arm.mk | 28 gin/array_buffer.cc \
|
/external/chromium_org/v8/test/cctest/ |
D | test-weaktypedarrays.cc | 65 static int CountViews(JSArrayBuffer* array_buffer) { in CountViews() argument 67 for (Object* o = array_buffer->weak_first_view(); in CountViews() 76 static bool HasViewInWeakList(JSArrayBuffer* array_buffer, in HasViewInWeakList() argument 78 for (Object* o = array_buffer->weak_first_view(); in HasViewInWeakList()
|
/external/chromium_org/content/renderer/ |
D | v8_value_converter_impl.cc | 359 scoped_ptr<blink::WebArrayBuffer> array_buffer( in FromV8Buffer() local 362 if (array_buffer) { in FromV8Buffer() 363 data = reinterpret_cast<char*>(array_buffer->data()); in FromV8Buffer() 364 length = array_buffer->byteLength(); in FromV8Buffer()
|
/external/chromium_org/native_client_sdk/src/examples/demo/earth/ |
D | earth.cc | 762 pp::VarArrayBuffer array_buffer(dictionary.Get("data")); in HandleEvent() local 763 if (!name.empty() && !array_buffer.is_null()) { in HandleEvent() 765 uint32_t* pixels = static_cast<uint32_t*>(array_buffer.Map()); in HandleEvent() 767 array_buffer.Unmap(); in HandleEvent()
|
/external/chromium_org/native_client_sdk/src/gonacl_appengine/src/earth/ |
D | earth.cc | 804 pp::VarArrayBuffer array_buffer(dictionary.Get("data")); in HandleMessage() local 805 if (!name.empty() && width > 0 && height > 0 && !array_buffer.is_null()) { in HandleMessage() 806 uint32_t* pixels = static_cast<uint32_t*>(array_buffer.Map()); in HandleMessage() 808 array_buffer.Unmap(); in HandleMessage()
|
/external/chromium_org/v8/src/ |
D | runtime.h | 822 Handle<JSArrayBuffer> array_buffer, 829 Handle<JSArrayBuffer> array_buffer,
|
D | runtime.cc | 744 Handle<JSArrayBuffer> array_buffer, in SetupArrayBuffer() argument 748 ASSERT(array_buffer->GetInternalFieldCount() == in SetupArrayBuffer() 751 array_buffer->SetInternalField(i, Smi::FromInt(0)); in SetupArrayBuffer() 753 array_buffer->set_backing_store(data); in SetupArrayBuffer() 754 array_buffer->set_flag(Smi::FromInt(0)); in SetupArrayBuffer() 755 array_buffer->set_is_external(is_external); in SetupArrayBuffer() 760 array_buffer->set_byte_length(*byte_length); in SetupArrayBuffer() 762 array_buffer->set_weak_next(isolate->heap()->array_buffers_list()); in SetupArrayBuffer() 763 isolate->heap()->set_array_buffers_list(*array_buffer); in SetupArrayBuffer() 764 array_buffer->set_weak_first_view(isolate->heap()->undefined_value()); in SetupArrayBuffer() [all …]
|
D | api.cc | 6237 Handle<ArrayBuffer> array_buffer, size_t byte_offset, size_t length) { in NewTypedArray() argument 6240 i::Handle<i::JSArrayBuffer> buffer = Utils::OpenHandle(*array_buffer); in NewTypedArray() 6263 Local<TypedArray> TypedArray::New(Handle<ArrayBuffer> array_buffer, \ 6273 isolate, array_buffer, byte_offset, length); \ 6299 Local<DataView> DataView::New(Handle<ArrayBuffer> array_buffer, in TYPED_ARRAY_NEW() 6307 i::Handle<i::JSArrayBuffer> buffer = Utils::OpenHandle(*array_buffer); in TYPED_ARRAY_NEW()
|
D | heap.cc | 1862 JSArrayBuffer* array_buffer, in VisitLiveObject() 1868 array_buffer->weak_first_view(), in VisitLiveObject() 1870 array_buffer->set_weak_first_view(typed_array_obj); in VisitLiveObject() 1873 array_buffer, JSArrayBuffer::kWeakFirstViewOffset); in VisitLiveObject()
|
/external/chromium_org/v8/include/ |
D | v8.h | 2868 static Local<Uint8Array> New(Handle<ArrayBuffer> array_buffer, 2884 static Local<Uint8ClampedArray> New(Handle<ArrayBuffer> array_buffer, 2899 static Local<Int8Array> New(Handle<ArrayBuffer> array_buffer, 2915 static Local<Uint16Array> New(Handle<ArrayBuffer> array_buffer, 2931 static Local<Int16Array> New(Handle<ArrayBuffer> array_buffer, 2947 static Local<Uint32Array> New(Handle<ArrayBuffer> array_buffer, 2963 static Local<Int32Array> New(Handle<ArrayBuffer> array_buffer, 2979 static Local<Float32Array> New(Handle<ArrayBuffer> array_buffer, 2995 static Local<Float64Array> New(Handle<ArrayBuffer> array_buffer, 3011 static Local<DataView> New(Handle<ArrayBuffer> array_buffer,
|
/external/chromium_org/content/renderer/webcrypto/ |
D | webcrypto_impl_unittest.cc | 36 const blink::WebArrayBuffer& array_buffer) { in ExpectArrayBufferMatchesHex() argument 39 base::HexEncode(array_buffer.data(), array_buffer.byteLength()).c_str()); in ExpectArrayBufferMatchesHex()
|