Home
last modified time | relevance | path

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

12345678910>>...17

/third_party/node/deps/npm/node_modules/tweetnacl/
Dnacl.d.ts10 publicKey: Uint8Array;
11 secretKey: Uint8Array;
15 publicKey: Uint8Array;
16 secretKey: Uint8Array;
20 (msg: Uint8Array, nonce: Uint8Array, key: Uint8Array): Uint8Array;
21 open(box: Uint8Array, nonce: Uint8Array, key: Uint8Array): Uint8Array | false;
28 (n: Uint8Array, p: Uint8Array): Uint8Array;
29 base(n: Uint8Array): Uint8Array;
36 …(msg: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, secretKey: Uint8Array): Uint8Array | f…
37 after(box: Uint8Array, nonce: Uint8Array, key: Uint8Array): Uint8Array | false;
[all …]
Dnacl.min.js1Uint8Array(16),y=new Uint8Array(64);if(!o)return 0;for(u=0;u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=i[…
Dnacl.js20 var _0 = new Uint8Array(16);
21 var _9 = new Uint8Array(32); _9[0] = 9;
128 var sigma = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107…
132 var z = new Uint8Array(16), x = new Uint8Array(64);
162 var s = new Uint8Array(32);
168 var s = new Uint8Array(32);
241 var x = new Uint8Array(16);
257 var x = new Uint8Array(32);
316 var c = new Uint8Array(32), d = new Uint8Array(32);
323 var d = new Uint8Array(32);
[all …]
/third_party/protobuf/js/experimental/runtime/kernel/
Dtyped_arrays_test.js32 const array1 = new Uint8Array(4);
34 const array2 = new Uint8Array(4);
40 const array1 = new Uint8Array(4);
42 const array2 = new Uint8Array(4);
48 const array1 = new Uint8Array(4);
56 const array1 = new Uint8Array(0);
57 const array2 = new Uint8Array(0);
62 const array = new Uint8Array(0);
70 const array = new Uint8Array(0);
78 const buffer1 = new Uint8Array([0, 1, 2, 3]).buffer;
[all …]
Duint8arrays_test.js13 expect(concatenateByteArrays(byteArrays)).toEqual(new Uint8Array(0));
17 const byteArrays = [new Uint8Array([0x01]), new Uint8Array([0x02])];
18 expect(concatenateByteArrays(byteArrays)).toEqual(new Uint8Array([
25 expect(concatenateByteArrays(byteArrays)).toEqual(new Uint8Array([
36 expect(concatenateByteArrays(byteArrays)).toEqual(new Uint8Array([
Dwriter_test.js46 return new Uint8Array(bytes).buffer;
255 const buffer = new Uint8Array(writer.getAndResetResultBuffer());
271 const buffer = new Uint8Array(writer.getAndResetResultBuffer());
290 const buffer = new Uint8Array(writer.getAndResetResultBuffer());
309 const buffer = new Uint8Array(writer.getAndResetResultBuffer());
324 const buffer = new Uint8Array(writer.getAndResetResultBuffer());
344 const buffer = new Uint8Array(writer.getAndResetResultBuffer());
369 const buffer = new Uint8Array(writer.getAndResetResultBuffer());
388 const buffer = new Uint8Array(writer.getAndResetResultBuffer());
408 const buffer = new Uint8Array(writer.getAndResetResultBuffer());
[all …]
/third_party/protobuf/js/experimental/runtime/
Dbytestring_test.js7 const /** !ArrayBuffer */ TEST_BYTES = new Uint8Array([1, 2, 3, 4]).buffer;
10 new Uint8Array([0, 1, 2, 3, 4]).buffer;
13 const /** !ArrayBufferView */ BYTES_WITH_HALLO = new Uint8Array([
26 expect(byteString.toUint8ArrayUnsafe()).toEqual(new Uint8Array(TEST_BYTES));
31 ByteString.fromArrayBufferView(new Uint8Array(TEST_BYTES));
33 expect(byteString.toUint8ArrayUnsafe()).toEqual(new Uint8Array(TEST_BYTES));
38 new Uint8Array(TEST_BYTES, /* offset */ 1, /* length */ 2));
39 const expected = new Uint8Array([2, 3]);
40 expect(new Uint8Array(byteString.toArrayBuffer())).toEqual(expected);
45 const array = new Uint8Array(TEST_BYTES);
[all …]
/third_party/node/test/parallel/
Dtest-assert-typedarray-deepequal.js14 [new Uint8Array(1e5), new Uint8Array(1e5)],
24 [new Uint8Array([1, 2, 3, 4]).subarray(1), new Uint8Array([2, 3, 4])],
41 [new Uint8Array(2), new Uint8Array(3)],
42 [new Uint8Array([1, 2, 3]), new Uint8Array([4, 5, 6])],
43 [new Uint8ClampedArray([300, 2, 3]), new Uint8Array([300, 2, 3])],
52 [new Uint8Array([1, 2, 3]).buffer, new Uint8Array([4, 5, 6]).buffer],
54 new Uint8Array(new SharedArrayBuffer(3)).fill(1).buffer,
55 new Uint8Array(new SharedArrayBuffer(3)).fill(2).buffer,
61 new Uint8Array(new ArrayBuffer(3)).fill(1).buffer,
62 new Uint8Array(new SharedArrayBuffer(3)).fill(2).buffer,
Dtest-buffer-writeuint.js41 assert.ok(data.equals(new Uint8Array([23, 23, 23, 23])));
47 assert.ok(data.equals(new Uint8Array([23, 23, 23, 23])));
62 assert.ok(data.equals(new Uint8Array([0x23, 0x43, 0, 0])));
65 assert.ok(data.equals(new Uint8Array([0x23, 0x23, 0x43, 0])));
68 assert.ok(data.equals(new Uint8Array([0x23, 0x23, 0x23, 0x43])));
71 assert.ok(data.equals(new Uint8Array([0x43, 0x23, 0x23, 0x43])));
74 assert.ok(data.equals(new Uint8Array([0x43, 0x43, 0x23, 0x43])));
77 assert.ok(data.equals(new Uint8Array([0x43, 0x43, 0x43, 0x23])));
81 assert.ok(data.equals(new Uint8Array([0x80, 0xff, 0x43, 0x23])));
84 assert.ok(data.equals(new Uint8Array([0xff, 0x80, 0x43, 0x23])));
[all …]
Dtest-buffer-writeint.js20 assert.ok(buffer.equals(new Uint8Array([ 0x23, 0xfb ])));
25 assert.ok(buffer.equals(new Uint8Array([ 0x7f, 0x80 ])));
57 assert.ok(buffer.equals(new Uint8Array([ 0x00, 0x23, 0x23, 0x00 ])));
61 assert.ok(buffer.equals(new Uint8Array([ 0xff, 0xfb, 0xfb, 0xff ])));
65 assert.ok(buffer.equals(new Uint8Array([ 0xf9, 0x71, 0x71, 0xf9 ])));
70 assert.ok(buffer.equals(new Uint8Array([ 0x7f, 0xff, 0x80, 0x00 ])));
74 assert.ok(buffer.equals(new Uint8Array([ 0xff, 0x7f, 0x00, 0x80 ])));
109 assert.ok(buffer.equals(new Uint8Array([
115 assert.ok(buffer.equals(new Uint8Array([
121 assert.ok(buffer.equals(new Uint8Array([
[all …]
Dtest-buffer-writedouble.js12 assert.ok(buffer.equals(new Uint8Array([
19 assert.ok(buffer.equals(new Uint8Array([
26 assert.ok(buffer.equals(new Uint8Array([
33 assert.ok(buffer.equals(new Uint8Array([
40 assert.ok(buffer.equals(new Uint8Array([
48 assert.ok(buffer.equals(new Uint8Array([
59 assert.ok(buffer.equals(new Uint8Array([
73 assert.ok(buffer.equals(new Uint8Array([
78 assert.ok(buffer.equals(new Uint8Array([
Dtest-buffer-writefloat.js13 new Uint8Array([ 0x3f, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3f ])));
18 new Uint8Array([ 0x3e, 0xaa, 0xaa, 0xab, 0xab, 0xaa, 0xaa, 0x3e ])));
23 new Uint8Array([ 0x7f, 0x7f, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x7f ])));
28 new Uint8Array([ 0x00, 0x00, 0x80, 0x00, 0x00, 0x80, 0x00, 0x00 ])));
33 new Uint8Array([ 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80 ])));
38 new Uint8Array([ 0x7F, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x7F ])));
46 new Uint8Array([ 0xFF, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF ])));
58 buffer.equals(new Uint8Array(
62 buffer.equals(new Uint8Array(
/third_party/typescript/tests/baselines/reference/
DtypedArraysCrossAssignability01.types11 let arr_Uint8Array = new Uint8Array(1);
12 >arr_Uint8Array : Uint8Array
13 >new Uint8Array(1) : Uint8Array
14 >Uint8Array : Uint8ArrayConstructor
65 >arr_Int8Array = arr_Uint8Array : Uint8Array
67 >arr_Uint8Array : Uint8Array
106 >arr_Uint8Array : Uint8Array
110 >arr_Uint8Array = arr_Uint8Array : Uint8Array
111 >arr_Uint8Array : Uint8Array
112 >arr_Uint8Array : Uint8Array
[all …]
DvalueOfTypedArray.types12 const typedArray1: Uint8Array = (new Uint8Array()).valueOf();
13 >typedArray1 : Uint8Array
14 >(new Uint8Array()).valueOf() : Uint8Array
15 >(new Uint8Array()).valueOf : () => Uint8Array
16 >(new Uint8Array()) : Uint8Array
17 >new Uint8Array() : Uint8Array
18 >Uint8Array : Uint8ArrayConstructor
19 >valueOf : () => Uint8Array
DunionWithIndexSignature.types30 export type TypedArray = Int32Array | Uint8Array;
33 export function isTypedArray(a: {}): a is Int32Array | Uint8Array {
34 >isTypedArray : (a: {}) => a is Int32Array | Uint8Array
37 return a instanceof Int32Array || a instanceof Uint8Array;
38 >a instanceof Int32Array || a instanceof Uint8Array : boolean
42 >a instanceof Uint8Array : boolean
44 >Uint8Array : Uint8ArrayConstructor
53 >isTypedArray : (a: {}) => a is Int32Array | Uint8Array
58 >arr : T & (Int32Array | Uint8Array)
DjsDeclarationsClassImplementsGenericsSerialization.types3 encode(value: T): Uint8Array
4 >encode : (value: T) => Uint8Array
19 >encode : (value: T) => Uint8Array
22 return new Uint8Array(0)
23 >new Uint8Array(0) : Uint8Array
24 >Uint8Array : Uint8ArrayConstructor
DtypedArrays.js5 typedArrays[1] = Uint8Array;
20 typedArrays[1] = new Uint8Array(obj);
35 typedArrays[1] = new Uint8Array(obj);
50 typedArrays[1] = Uint8Array.from(obj);
65 typedArrays[1] = Uint8Array.from(obj);
80 typedArrays[1] = Uint8Array.of(...obj);
95 typedArrays[1] = Uint8Array.of(1,2,3,4);
110 typedArrays[1] = Uint8Array.from(obj, mapFn);
125 typedArrays[1] = Uint8Array.from(obj, mapFn);
140 typedArrays[1] = Uint8Array.from(obj, mapFn, thisArg);
[all …]
DtypedArraysSubarray.types36 var arr = new Uint8Array(10);
37 >arr : Uint8Array
38 >new Uint8Array(10) : Uint8Array
39 >Uint8Array : Uint8ArrayConstructor
43 >arr.subarray() : Uint8Array
44 >arr.subarray : (begin?: number, end?: number) => Uint8Array
45 >arr : Uint8Array
46 >subarray : (begin?: number, end?: number) => Uint8Array
49 >arr.subarray(0) : Uint8Array
50 >arr.subarray : (begin?: number, end?: number) => Uint8Array
[all …]
DtypedArrays.types16 typedArrays[1] = Uint8Array;
17 >typedArrays[1] = Uint8Array : Uint8ArrayConstructor
21 >Uint8Array : Uint8ArrayConstructor
93 typedArrays[1] = new Uint8Array(obj);
94 >typedArrays[1] = new Uint8Array(obj) : Uint8Array
98 >new Uint8Array(obj) : Uint8Array
99 >Uint8Array : Uint8ArrayConstructor
186 typedArrays[1] = new Uint8Array(obj);
187 >typedArrays[1] = new Uint8Array(obj) : Uint8Array
191 >new Uint8Array(obj) : Uint8Array
[all …]
DbigintIndex.types63 const typedArray = new Uint8Array(3);
64 >typedArray : Uint8Array
65 >new Uint8Array(3) : Uint8Array
66 >Uint8Array : Uint8ArrayConstructor
72 >typedArray : Uint8Array
79 >typedArray : Uint8Array
88 >typedArray : Uint8Array
95 >typedArray : Uint8Array
DtypedArraysCrossAssignability01.errors.txt1 tests/cases/compiler/typedArraysCrossAssignability01.ts(13,5): error TS2322: Type 'Uint8Array' is n…
3 Type '"Uint8Array"' is not assignable to type '"Int8Array"'.
25 …ossAssignability01.ts(22,5): error TS2322: Type 'Int8Array' is not assignable to type 'Uint8Array'.
27 Type '"Int8Array"' is not assignable to type '"Uint8Array"'.
28 …ssAssignability01.ts(24,5): error TS2322: Type 'Int16Array' is not assignable to type 'Uint8Array'.
30 Type '"Int16Array"' is not assignable to type '"Uint8Array"'.
31 …sAssignability01.ts(25,5): error TS2322: Type 'Uint16Array' is not assignable to type 'Uint8Array'.
33 Type '"Uint16Array"' is not assignable to type '"Uint8Array"'.
34 …ssAssignability01.ts(26,5): error TS2322: Type 'Int32Array' is not assignable to type 'Uint8Array'.
36 Type '"Int32Array"' is not assignable to type '"Uint8Array"'.
[all …]
/third_party/typescript/src/lib/
Des2017.sharedmemory.d.ts34 …add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, inde…
41 …and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, inde…
48 …compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint3…
55 …exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array,…
68 …load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, ind…
75 …or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index…
81 …store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, in…
88 …sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, inde…
112 …xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, inde…
/third_party/typescript/lib/
Dlib.es2017.sharedmemory.d.ts54 …add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, inde…
61 …and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, inde…
68 …compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint3…
75 …exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array,…
88 …load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, ind…
95 …or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index…
101 …store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, in…
108 …sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, inde…
132 …xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, inde…
/third_party/node/test/fixtures/wpt/encoding/streams/
Ddecode-split-character.any.js12 [new Uint8Array(inputBytes.slice(0, splitPoint)),
13 new Uint8Array(inputBytes.slice(splitPoint))]);
27 [new Uint8Array(inputBytes.slice(0, splitPoint)),
28 new Uint8Array(inputBytes.slice(splitPoint))]);
39 [new Uint8Array(inputBytes.slice(0, splitPoint)),
40 new Uint8Array([]),
41 new Uint8Array(inputBytes.slice(splitPoint))]);
/third_party/typescript/tests/cases/compiler/
DtypedArrays.ts6 typedArrays[1] = Uint8Array;
21 typedArrays[1] = new Uint8Array(obj);
36 typedArrays[1] = new Uint8Array(obj);
51 typedArrays[1] = Uint8Array.from(obj);
66 typedArrays[1] = Uint8Array.from(obj);
81 typedArrays[1] = Uint8Array.of(...obj);
96 typedArrays[1] = Uint8Array.of(1,2,3,4);
111 typedArrays[1] = Uint8Array.from(obj, mapFn);
126 typedArrays[1] = Uint8Array.from(obj, mapFn);
141 typedArrays[1] = Uint8Array.from(obj, mapFn, thisArg);
[all …]

12345678910>>...17