Home
last modified time | relevance | path

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

/external/chromium_org/ppapi/shared_impl/
Dvar_tracker.cc202 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 …]
Dvar_value_conversions.cc122 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/
Dwebsocket.cc120 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/
Dtest_flash_clipboard.cc140 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()
Dtest_x509_certificate_private.cc48 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/
Dtest_socket.cc166 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/
Dcore.cc60 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/
Dppb_x509_certificate_private_shared.cc69 PP_Var array_buffer = in GetFieldAsPPVar() local
72 return array_buffer; in GetFieldAsPPVar()
/external/chromium_org/gin/
Dgin.gyp27 'array_buffer.cc',
28 'array_buffer.h',
Dgin.target.linux-mips.mk28 gin/array_buffer.cc \
Dgin.target.linux-x86.mk28 gin/array_buffer.cc \
Dgin.target.darwin-mips.mk28 gin/array_buffer.cc \
Dgin.target.darwin-arm.mk28 gin/array_buffer.cc \
Dgin.target.darwin-x86.mk28 gin/array_buffer.cc \
Dgin.target.linux-arm.mk28 gin/array_buffer.cc \
/external/chromium_org/v8/test/cctest/
Dtest-weaktypedarrays.cc65 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/
Dv8_value_converter_impl.cc359 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/
Dearth.cc762 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/
Dearth.cc804 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/
Druntime.h822 Handle<JSArrayBuffer> array_buffer,
829 Handle<JSArrayBuffer> array_buffer,
Druntime.cc744 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 …]
Dapi.cc6237 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()
Dheap.cc1862 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/
Dv8.h2868 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/
Dwebcrypto_impl_unittest.cc36 const blink::WebArrayBuffer& array_buffer) { in ExpectArrayBufferMatchesHex() argument
39 base::HexEncode(array_buffer.data(), array_buffer.byteLength()).c_str()); in ExpectArrayBufferMatchesHex()