Home
last modified time | relevance | path

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

/third_party/node/test/fixtures/wpt/FileAPI/blob/
DBlob-array-buffer.any.js8 const array_buffer = await blob.arrayBuffer(); constant
9 assert_true(array_buffer instanceof ArrayBuffer);
10 assert_equals_typed_array(new Uint8Array(array_buffer), input_arr);
16 const array_buffer = await blob.arrayBuffer(); constant
17 assert_true(array_buffer instanceof ArrayBuffer);
18 assert_equals_typed_array(new Uint8Array(array_buffer), input_arr);
24 const array_buffer = await blob.arrayBuffer(); constant
25 assert_equals_typed_array(new Uint8Array(array_buffer), input_arr);
32 const array_buffer = await blob.arrayBuffer(); constant
33 assert_equals_typed_array(new Uint8Array(array_buffer), typed_arr);
[all …]
/third_party/quickjs/tests/
Dtest_bjson.js122 var array, buf, i, n, array_buffer;
127 array_buffer = new ArrayBuffer(n);
131 array[i].typed_array = new Uint8Array(array_buffer, i, 1);
141 assert(array[i].typed_array.buffer, array_buffer);
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/
DGPUBuffer.cpp135 auto array_buffer = Napi::ArrayBuffer::New(env, ptr, s); in getMappedRange() local
137 mapped_.emplace_back(Mapping{start, end, Napi::Persistent(array_buffer)}); in getMappedRange()
138 return array_buffer; in getMappedRange()
/third_party/node/test/js-native-api/test_typedarray/
Dtest_typedarray.c212 napi_value array_buffer = args[0]; in IsDetached() local
214 NAPI_CALL(env, napi_is_arraybuffer(env, array_buffer, &is_arraybuffer)); in IsDetached()
219 NAPI_CALL(env, napi_is_detached_arraybuffer(env, array_buffer, &is_detached)); in IsDetached()
/third_party/jerryscript/jerry-core/api/
Djerry.c3877 jerry_get_arraybuffer_pointer (const jerry_value_t array_buffer) /**< Array Buffer to use */ in jerry_get_arraybuffer_pointer() argument
3882 if (ecma_is_value_error_reference (array_buffer) in jerry_get_arraybuffer_pointer()
3883 || !ecma_is_arraybuffer (array_buffer)) in jerry_get_arraybuffer_pointer()
3888 ecma_object_t *buffer_p = ecma_get_object_from_value (array_buffer); in jerry_get_arraybuffer_pointer()
3892 JERRY_UNUSED (array_buffer); in jerry_get_arraybuffer_pointer()
3966 jerry_create_dataview (const jerry_value_t array_buffer, /**< arraybuffer to create DataView from */ in jerry_create_dataview() argument
3973 if (ecma_is_value_error_reference (array_buffer)) in jerry_create_dataview()
3980 array_buffer, in jerry_create_dataview()
3987 JERRY_UNUSED (array_buffer); in jerry_create_dataview()
/third_party/node/src/
Dnode_buffer.cc1193 Local<ArrayBuffer> array_buffer = in Initialize() local
1195 array_buffer->SetPrivate( in Initialize()
1202 Uint32Array::New(array_buffer, 0, 1)) in Initialize()
Dnode.cc243 Local<v8::SharedArrayBuffer> array_buffer, in AtomicsWaitCallback() argument
265 array_buffer->GetBackingStore()->Data(), in AtomicsWaitCallback()
/third_party/quickjs/
Dquickjs.c907 … struct JSArrayBuffer *array_buffer; /* JS_CLASS_ARRAY_BUFFER, JS_CLASS_SHARED_ARRAY_BUFFER */ member
6112 JSArrayBuffer *abuf = p->u.array_buffer; in JS_ComputeMemoryUsage()
34523 JSArrayBuffer *abuf = p->u.array_buffer; in JS_WriteArrayBuffer()
34537 JSArrayBuffer *abuf = p->u.array_buffer; in JS_WriteSharedArrayBuffer()
35588 JSValue obj = JS_UNDEFINED, array_buffer = JS_UNDEFINED; in JS_ReadTypedArray() local
35606 array_buffer = JS_ReadObjectRec(s); in JS_ReadTypedArray()
35607 if (JS_IsException(array_buffer)) in JS_ReadTypedArray()
35609 if (!js_get_array_buffer(ctx, array_buffer)) { in JS_ReadTypedArray()
35610 JS_FreeValue(ctx, array_buffer); in JS_ReadTypedArray()
35613 args[0] = array_buffer; in JS_ReadTypedArray()
[all …]
/third_party/jerryscript/docs/
D02.API-REFERENCE.md3999 jerry_create_dataview (const jerry_value_t array_buffer,
4004 - `array_buffer` - arrayBuffer to create DataView from
/third_party/chromium/patch/
D0004-3.2-Beta5.patch5722 + std::vector<uint8_t> vecBinary = message.array_buffer;
41236 +#include "third_party/blink/public/mojom/array_buffer/array_buffer_contents.mojom.h"
41292 + [&](const std::vector<uint8_t>& array_buffer) {
41297 + mojo_base::BigBuffer big_buffer(array_buffer);
41411 +WebMessagePort::Message::Message(std::vector<uint8_t> array_buffer)
41412 + : array_buffer(std::move(array_buffer)) {}
41429 + message.array_buffer.size() != 0 ?
41430 + WebMessagePayload(std::move(message.array_buffer)) :
41452 + } else if (auto* array_buffer = absl::get_if<std::vector<uint8_t>>(&payload)) {
41453 + message.array_buffer = std::move(*array_buffer);
[all …]
D0003-3.2-Beta3-1115.patch24855 +#include "gin/array_buffer.h"
252808 ThrowDataCloneError(MessageTemplate::kDataCloneError, array_buffer);
252815 WriteRawBytes(array_buffer->backing_store(), byte_length);
D0001-cve.patch5022 - DCHECK(array_buffer->IsDetached());
5024 + CHECK(array_buffer->IsDetached());