Home
last modified time | relevance | path

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

1234

/third_party/node/test/parallel/
Dtest-util-types.js120 const arrayBuffer = new ArrayBuffer(); constant
121 const buffer = Buffer.from(arrayBuffer);
122 const dataView = new DataView(arrayBuffer);
123 const uint8Array = new Uint8Array(arrayBuffer);
124 const uint8ClampedArray = new Uint8ClampedArray(arrayBuffer);
125 const uint16Array = new Uint16Array(arrayBuffer);
126 const uint32Array = new Uint32Array(arrayBuffer);
127 const int8Array = new Int8Array(arrayBuffer);
128 const int16Array = new Int16Array(arrayBuffer);
129 const int32Array = new Int32Array(arrayBuffer);
[all …]
Dtest-buffer-parent-property.js17 const arrayBuffer = new ArrayBuffer(0); constant
18 assert.strictEqual(new Buffer(arrayBuffer).parent, arrayBuffer);
19 assert.strictEqual(new Buffer(arrayBuffer).buffer, arrayBuffer);
20 assert.strictEqual(Buffer.from(arrayBuffer).parent, arrayBuffer);
21 assert.strictEqual(Buffer.from(arrayBuffer).buffer, arrayBuffer);
Dtest-worker-sharedarraybuffer-from-worker-thread.js20 let arrayBuffer; variable
21 w.once('message', common.mustCall((message) => arrayBuffer = message));
23 assert.strictEqual(arrayBuffer.constructor.name, ctor);
24 const uint8array = new Uint8Array(arrayBuffer);
Dtest-worker-message-port-arraybuffer.js10 const arrayBuffer = new ArrayBuffer(40); constant
11 const typedArray = new Uint32Array(arrayBuffer);
14 port1.postMessage(typedArray, [ arrayBuffer ]);
Dtest-inspector-connect-main-thread.js70 function doConsoleLog(arrayBuffer) { argument
72 arrayBuffer[0] = 128;
104 const arrayBuffer = new Uint8Array(sharedBuffer);
105 arrayBuffer[0] = 1;
107 worker.onConsoleRequest.then(doConsoleLog.bind(null, arrayBuffer));
Dtest-tcp-wrap-listen.js38 client.onread = common.mustCall((arrayBuffer) => {
39 if (arrayBuffer) {
42 const buffer = Buffer.from(arrayBuffer, offset, nread);
Dtest-process-wrap.js47 pipe.onread = function(arrayBuffer) { argument
49 if (arrayBuffer) {
/third_party/node/test/fixtures/wpt/FileAPI/blob/
DBlob-array-buffer.any.js8 const array_buffer = await blob.arrayBuffer();
16 const array_buffer = await blob.arrayBuffer();
24 const array_buffer = await blob.arrayBuffer();
32 const array_buffer = await blob.arrayBuffer();
39 const array_buffer_results = await Promise.all([blob.arrayBuffer(),
40 blob.arrayBuffer(), blob.arrayBuffer()]);
DBlob-slice.any.js57 var arrayBuffer = new ArrayBuffer(16);
58 var int8View = new Int8Array(arrayBuffer);
131 [new Uint8Array(arrayBuffer, 3, 5), blob1, "foo"],
/third_party/node/test/sequential/
Dtest-buffer-creation-regression.js6 function test(arrayBuffer, offset, length) { argument
7 const uint8Array = new Uint8Array(arrayBuffer, offset, length);
12 const buffer = Buffer.from(arrayBuffer, offset, length);
26 let arrayBuffer; variable
29 arrayBuffer = new ArrayBuffer(size); variable
36 test(arrayBuffer, offset, length);
/third_party/node/benchmark/util/
Dtype-check.js5 const arrayBuffer = new ArrayBuffer(); constant
6 const dataView = new DataView(arrayBuffer);
7 const uint8Array = new Uint8Array(arrayBuffer);
8 const int32Array = new Int32Array(arrayBuffer);
14 'false-object': arrayBuffer
19 'false-object': arrayBuffer
/third_party/node/deps/npm/node_modules/buffer-from/
Dreadme.md39 ### bufferFrom(arrayBuffer[, byteOffset[, length]])
41 - `arrayBuffer` <ArrayBuffer> The `.buffer` property of a TypedArray or ArrayBuffer
42 - `byteOffset` <Integer> Where to start copying from `arrayBuffer`. **Default:** `0`
43 - `length` <Integer> How many bytes to copy from `arrayBuffer`. **Default:** `arrayBuffer.len…
49 the `arrayBuffer` that will be shared by the `Buffer`.
/third_party/jerryscript/tests/jerry/es2015/
Dregression-test-issue-2848.js15 var arrayBuffer = new ArrayBuffer; variable
16 var dataView = new DataView(arrayBuffer);
17 assert (dataView.buffer === arrayBuffer);
Dregression-test-issue-2181.js18 var arrayBuffer = new ArrayBuffer(1); variable
22 arrayBuffer.slice(start, end);
/third_party/protobuf/js/experimental/runtime/kernel/
Dmessage_set_test.js107 const arrayBuffer = createArrayBuffer( constant
133 const outerMessage = Kernel.fromArrayBuffer(arrayBuffer);
143 const arrayBuffer = createArrayBuffer( constant
170 const outerMessage = Kernel.fromArrayBuffer(arrayBuffer);
248 const arrayBuffer = barMessage.serialize(); constant
250 const barMessageParsed = Kernel.fromArrayBuffer(arrayBuffer);
Dbuffer_decoder.js58 static fromArrayBuffer(arrayBuffer) { argument
60 new DataView(arrayBuffer), 0, arrayBuffer.byteLength);
Dwriter.js440 writeRaw_(arrayBuffer) { argument
442 this.blocks_.push(new Uint8Array(arrayBuffer));
466 writeDelimited(fieldNumber, arrayBuffer) { argument
468 this.writeUnsignedVarint32_(arrayBuffer.byteLength);
469 this.writeRaw_(arrayBuffer);
/third_party/skia/demos.skia.org/demos/image_decode_web_worker/
Dworker.js14 const arrayBuffer = imageData.data.buffer; constant
18 decodedArrayBuffer: arrayBuffer
20 arrayBuffer // give up ownership of this object
/third_party/skia/experimental/wasm-skp-debugger/tests/
Dstartup.spec.js26 response.arrayBuffer().then(function(buffer) {
52 response.arrayBuffer().then(function(buffer) {
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
DVertexArrayGL.cpp432 const Buffer *arrayBuffer = bindingBuffer.get(); in updateAttribPointer() local
433 if (arrayBuffer == nullptr) in updateAttribPointer()
457 const BufferGL *arrayBufferGL = GetImplAs<BufferGL>(arrayBuffer); in updateAttribPointer()
557 const Buffer *arrayBuffer = binding.getBuffer().get(); in updateBindingBuffer() local
559 if (arrayBuffer != nullptr) in updateBindingBuffer()
561 bufferId = GetImplAs<BufferGL>(arrayBuffer)->getBufferID(); in updateBindingBuffer()
/third_party/node/deps/npm/node_modules/npm-registry-fetch/node_modules/safe-buffer/
Dindex.d.ts81 constructor (arrayBuffer: ArrayBuffer);
111 static from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
/third_party/node/deps/npm/node_modules/string_decoder/node_modules/safe-buffer/
Dindex.d.ts81 constructor (arrayBuffer: ArrayBuffer);
111 static from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
/third_party/node/deps/npm/node_modules/safe-buffer/
Dindex.d.ts81 constructor (arrayBuffer: ArrayBuffer);
111 static from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
/third_party/node/deps/npm/node_modules/tar/node_modules/safe-buffer/
Dindex.d.ts81 constructor (arrayBuffer: ArrayBuffer);
111 static from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
/third_party/node/lib/internal/
Dblob.js195 async arrayBuffer() { method in Blob
218 return dec.decode(await this.arrayBuffer());

1234