Home
last modified time | relevance | path

Searched refs:fromArrayBuffer (Results 1 – 20 of 20) sorted by relevance

/third_party/protobuf/js/experimental/runtime/kernel/
Dkernel_test.js29 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
34 const accessor = Kernel.fromArrayBuffer(
43 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
48 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0), 50);
55 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
61 const accessor = Kernel.fromArrayBuffer(bytes);
78 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
98 const accessor = Kernel.fromArrayBuffer(bytes);
108 const accessor = Kernel.fromArrayBuffer(bytes);
133 const accessor = Kernel.fromArrayBuffer(bytes);
[all …]
Dbuffer_decoder_test.js23 BufferDecoder.fromArrayBuffer(createArrayBuffer(0x0, 0x1));
33 BufferDecoder.fromArrayBuffer(createArrayBuffer(0x0, 0x1, 0x2));
43 BufferDecoder.fromArrayBuffer(createArrayBuffer(0x01));
49 const bufferDecoder = BufferDecoder.fromArrayBuffer(createArrayBuffer(
66 BufferDecoder.fromArrayBuffer(createArrayBuffer(0x80, 0x80));
74 BufferDecoder.fromArrayBuffer(createArrayBuffer(0x00));
83 BufferDecoder.fromArrayBuffer(createArrayBuffer(0x01));
91 const bufferDecoder = BufferDecoder.fromArrayBuffer(createArrayBuffer(
103 BufferDecoder.fromArrayBuffer(createArrayBuffer(0x00));
111 BufferDecoder.fromArrayBuffer(createArrayBuffer(0x01));
[all …]
Dkernel_compatibility_test.js47 const newAccessor = Kernel.fromArrayBuffer(serializedData);
61 const newAccessor = Kernel.fromArrayBuffer(serializedData);
76 1, ByteString.fromArrayBuffer(createArrayBuffer(0xA, 0xB)));
80 const newAccessor = Kernel.fromArrayBuffer(serializedData);
83 .toEqual(ByteString.fromArrayBuffer(createArrayBuffer(0xA, 0xB)));
93 const newAccessor = Kernel.fromArrayBuffer(serializedData);
107 const newAccessor = Kernel.fromArrayBuffer(serializedData);
121 const newAccessor = Kernel.fromArrayBuffer(serializedData);
144 const newAccessor = Kernel.fromArrayBuffer(serializedData);
158 1, ByteString.fromArrayBuffer(createArrayBuffer(0xA, 0xB)));
[all …]
Dkernel_repeated_test.js91 const accessor = Kernel.fromArrayBuffer(bytes);
97 const accessor = Kernel.fromArrayBuffer(bytes);
105 const accessor = Kernel.fromArrayBuffer(bytes);
127 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x00, 0x08, 0x01));
157 Kernel.fromArrayBuffer(createArrayBuffer(0x0A, 0x02, 0x00, 0x01));
172 const accessor = Kernel.fromArrayBuffer(bytes);
178 const accessor = Kernel.fromArrayBuffer(bytes);
186 const accessor = Kernel.fromArrayBuffer(bytes);
208 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x00, 0x08, 0x01));
238 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x00, 0x08, 0x01));
[all …]
Dtag_test.js25 BufferDecoder.fromArrayBuffer(createArrayBuffer(0x80, 0x00));
32 BufferDecoder.fromArrayBuffer(createArrayBuffer(0x80, 0x00));
40 const bufferDecoder = BufferDecoder.fromArrayBuffer(
48 BufferDecoder.fromArrayBuffer(createArrayBuffer(0x80, 0x00));
56 const bufferDecoder = BufferDecoder.fromArrayBuffer(
64 BufferDecoder.fromArrayBuffer(createArrayBuffer(0x80, 0x00));
73 const bufferDecoder = BufferDecoder.fromArrayBuffer(
81 BufferDecoder.fromArrayBuffer(createArrayBuffer(0x03, 0x00, 0x00));
89 const bufferDecoder = BufferDecoder.fromArrayBuffer(
105 const bufferDecoder = BufferDecoder.fromArrayBuffer(buffer);
[all …]
Dmessage_set_test.js82 Kernel.fromArrayBuffer(messageSet.internalGetKernel().serialize());
133 const outerMessage = Kernel.fromArrayBuffer(arrayBuffer);
170 const outerMessage = Kernel.fromArrayBuffer(arrayBuffer);
250 const barMessageParsed = Kernel.fromArrayBuffer(arrayBuffer);
Dwriter_test.js151 BufferDecoder.fromArrayBuffer(expected), 1, WireType.VARINT, 1);
162 BufferDecoder.fromArrayBuffer(expected), 1, WireType.FIXED64, 1);
173 BufferDecoder.fromArrayBuffer(expected), 1, WireType.DELIMITED, 1);
184 BufferDecoder.fromArrayBuffer(expected), 1, WireType.START_GROUP, 1);
195 BufferDecoder.fromArrayBuffer(expected), 1, WireType.FIXED32, 1);
206 BufferDecoder.fromArrayBuffer(subBuffer), 0, WireType.DELIMITED, 1))
224 writer.writeBytes(1, ByteString.fromArrayBuffer(new ArrayBuffer(0)));
234 writer.writeBytes(1, ByteString.fromArrayBuffer(array));
866 writer.writeRepeatedBytes(1, [ByteString.fromArrayBuffer(value)]);
879 ByteString.fromArrayBuffer(value1),
[all …]
Dbuffer_decoder.js51 return BufferDecoder.fromArrayBuffer(bytesArray.buffer);
58 static fromArrayBuffer(arrayBuffer) { method in BufferDecoder
Dbuffer_decoder_helper.js13 return BufferDecoder.fromArrayBuffer(new Uint8Array(bytes).buffer);
Dreader_test.js68 expect(ByteString.fromArrayBuffer(new Uint8Array([1, 2, 3]).buffer))
259 const bufferDecoder = BufferDecoder.fromArrayBuffer(encodedArray.buffer);
Dkernel.js357 static fromArrayBuffer(arrayBuffer, pivot = undefined) { method in Kernel
358 const bufferDecoder = BufferDecoder.fromArrayBuffer(arrayBuffer);
/third_party/protobuf/js/experimental/runtime/
Dbytestring_test.js8 const /** !ByteString */ TEST_STRING = ByteString.fromArrayBuffer(TEST_BYTES);
24 ByteString.fromArrayBuffer(arrayBufferSlice(TEST_BYTES, 0));
66 const byteString = ByteString.fromArrayBuffer(buffer);
179 const empty = ByteString.fromArrayBuffer(new ArrayBuffer(0));
199 const other = ByteString.fromArrayBuffer(arrayBufferSlice(TEST_BYTES, 0));
205 ByteString.fromArrayBuffer(new Uint8Array([1, 2, 3, 4, 5]).buffer);
235 const empty = ByteString.fromArrayBuffer(new ArrayBuffer(0));
240 const other = ByteString.fromArrayBuffer(arrayBufferSlice(TEST_BYTES, 0));
Dbytestring.js49 static fromArrayBuffer(bytes, start = 0, end = undefined) { method in ByteString
/third_party/protobuf/js/experimental/runtime/kernel/conformance/
Dconformance_response.js23 this.accessor_ = Kernel.fromArrayBuffer(bytes);
55 const bytesString = ByteString.fromArrayBuffer(value);
Dconformance_request.js23 this.accessor_ = Kernel.fromArrayBuffer(bytes);
Dtest_all_types_proto3.js46 const requestAccessor = Kernel.fromArrayBuffer(bytes);
Dtest_all_types_proto2.js46 const requestAccessor = Kernel.fromArrayBuffer(bytes);
/third_party/protobuf/js/experimental/runtime/testing/
Densure_custom_equality_test.js40 const bufferDecoder1 = BufferDecoder.fromArrayBuffer(arrayBuffer1);
41 const bufferDecoder2 = BufferDecoder.fromArrayBuffer(arrayBuffer2);
/third_party/node/deps/npm/node_modules/buffer/
Dindex.js131 return fromArrayBuffer(value, encodingOrOffset, length)
137 return fromArrayBuffer(value, encodingOrOffset, length)
268 return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)
273 function fromArrayBuffer (array, byteOffset, length) { function
/third_party/node/lib/
Dbuffer.js312 return fromArrayBuffer(value, encodingOrOffset, length);
501 function fromArrayBuffer(obj, byteOffset, length) { function