Lines Matching refs:bytes

20  * @param {...number} bytes
23 function createArrayBuffer(...bytes) {
24 return new Uint8Array(bytes).buffer;
60 const bytes = createArrayBuffer(0x08, 0x01);
61 const accessor = Kernel.fromArrayBuffer(bytes);
97 const bytes = createArrayBuffer(0x08, 0x01);
98 const accessor = Kernel.fromArrayBuffer(bytes);
107 const bytes = createArrayBuffer(0x08, 0x01);
108 const accessor = Kernel.fromArrayBuffer(bytes);
132 const bytes = createArrayBuffer(0x08, 0x01);
133 const accessor = Kernel.fromArrayBuffer(bytes);
146 const bytes = createArrayBuffer(0x08, 0x01);
147 const accessor = Kernel.fromArrayBuffer(bytes);
214 it('return the correct bytes after serialization', () => {
215 const bytes = createArrayBuffer(0x08, 0x01, 0x10, 0x01);
216 const accessor = Kernel.fromArrayBuffer(bytes, /* pivot= */ 1);
222 expect(clonedAccessor.serialize()).toEqual(bytes);
235 const bytes = createArrayBuffer(0x08, 0x01);
236 const accessor = Kernel.fromArrayBuffer(bytes);
243 const bytes = createArrayBuffer(0x08, 0x01);
244 const accessor = Kernel.fromArrayBuffer(bytes);
245 expect(accessor.serialize()).toEqual(bytes);
249 const bytes = createArrayBuffer(0x08, 0x01);
250 const accessor = Kernel.fromArrayBuffer(bytes);
253 expect(accessor.serialize()).toEqual(bytes);
257 const bytes = createArrayBuffer(0x08, 0x01, 0x08, 0x00);
258 const accessor = Kernel.fromArrayBuffer(bytes);
265 const bytes = createArrayBuffer(0x08, 0x01, 0x08, 0x00);
266 const accessor = Kernel.fromArrayBuffer(bytes);
267 expect(accessor.serialize()).toEqual(bytes);
271 const bytes = createArrayBuffer(0x08, 0x01, 0x08, 0x00);
272 const accessor = Kernel.fromArrayBuffer(bytes);
274 expect(accessor.serialize()).toEqual(bytes);
278 const bytes = createArrayBuffer(0x08, 0x01, 0x08, 0x00);
279 const accessor = Kernel.fromArrayBuffer(bytes);
287 const bytes = createArrayBuffer(0x08, 0x01, 0x08, 0x00);
288 const accessor = Kernel.fromArrayBuffer(bytes);
295 const bytes = createArrayBuffer(0x08, 0x01);
296 const accessor = Kernel.fromArrayBuffer(bytes);
301 bytes[1] = 0x00;
361 const bytes = createArrayBuffer(0x0A, 0x02, 0x08, 0x01);
362 const accessor = Kernel.fromArrayBuffer(bytes);
368 const bytes = createArrayBuffer(0x0A, 0x02, 0x08, 0x01);
369 const accessor = Kernel.fromArrayBuffer(bytes, /* pivot= */ 0);
375 const bytes = createArrayBuffer(0x0A, 0x02, 0x08, 0x01);
376 const accessor = Kernel.fromArrayBuffer(bytes);
377 expect(accessor.serialize()).toEqual(bytes);
381 const bytes = createArrayBuffer(0x0A, 0x02, 0x08, 0x01);
382 const accessor = Kernel.fromArrayBuffer(bytes);
384 expect(accessor.serialize()).toEqual(bytes);
388 const bytes =
390 const accessor = Kernel.fromArrayBuffer(bytes);
397 const bytes =
399 const accessor = Kernel.fromArrayBuffer(bytes);
400 expect(accessor.serialize()).toEqual(bytes);
404 const bytes =
407 const accessor = Kernel.fromArrayBuffer(bytes);
413 const bytes = createArrayBuffer(0x0A, 0x02, 0x08, 0x01);
414 const accessor = Kernel.fromArrayBuffer(bytes);
420 const bytes = createArrayBuffer(0x0A, 0x02, 0x08, 0x01);
421 const accessor = Kernel.fromArrayBuffer(bytes);
427 const bytes = createArrayBuffer(0x0A, 0x02, 0x08, 0x01);
428 const accessor = Kernel.fromArrayBuffer(bytes);
438 const bytes = createArrayBuffer(0x0A, 0x02, 0x08, 0x01);
439 const accessor = Kernel.fromArrayBuffer(bytes);
458 const bytes = createArrayBuffer(0x08, 0x01);
460 const subaccessor = Kernel.fromArrayBuffer(bytes);
609 const bytes = new ArrayBuffer(0);
610 const accessor = Kernel.fromArrayBuffer(bytes);
613 .toEqual(bytes);
617 const bytes = new ArrayBuffer(0);
618 const accessor = Kernel.fromArrayBuffer(bytes);
624 const bytes = createArrayBuffer(0x0A, 0x02, 0x08, 0x01);
625 const accessor = Kernel.fromArrayBuffer(bytes);
738 const bytes = createArrayBuffer(0x0A, 0x01, 0x00);
739 const accessor = Kernel.fromArrayBuffer(bytes);
745 const bytes = createArrayBuffer(0x0A, 0x01, 0x00);
746 const accessor = Kernel.fromArrayBuffer(bytes);
753 const bytes = createArrayBuffer(0x0A, 0x01, 0x01);
754 const accessor = Kernel.fromArrayBuffer(bytes);
757 bytes[2] = 0x00;
836 const bytes = createArrayBuffer(0x0D, 0x01, 0x00, 0x00, 0x00);
837 const accessor = Kernel.fromArrayBuffer(bytes);
843 const bytes = createArrayBuffer(0x0D, 0x01, 0x00, 0x00, 0x00);
844 const accessor = Kernel.fromArrayBuffer(bytes);
851 const bytes = createArrayBuffer(0x0D, 0x01, 0x00, 0x00, 0x00);
852 const accessor = Kernel.fromArrayBuffer(bytes);
855 bytes[2] = 0x00;
942 const bytes =
944 const accessor = Kernel.fromArrayBuffer(bytes);
950 const bytes =
952 const accessor = Kernel.fromArrayBuffer(bytes);
960 const bytes =
962 const accessor = Kernel.fromArrayBuffer(bytes);
965 bytes[2] = 0x00;
1038 const bytes = createArrayBuffer(0x0D, 0x00, 0x00, 0x80, 0x3F);
1039 const accessor = Kernel.fromArrayBuffer(bytes);
1045 const bytes = createArrayBuffer(0x0D, 0x00, 0x00, 0x80, 0x3F);
1046 const accessor = Kernel.fromArrayBuffer(bytes);
1053 const bytes = createArrayBuffer(0x0D, 0x00, 0x00, 0x80, 0x3F);
1054 const accessor = Kernel.fromArrayBuffer(bytes);
1057 bytes[2] = 0x00;
1145 const bytes = createArrayBuffer(0x08, 0x01);
1146 const accessor = Kernel.fromArrayBuffer(bytes);
1152 const bytes = createArrayBuffer(0x08, 0x01);
1153 const accessor = Kernel.fromArrayBuffer(bytes);
1160 const bytes = createArrayBuffer(0x08, 0x01);
1161 const accessor = Kernel.fromArrayBuffer(bytes);
1164 bytes[2] = 0x00;
1244 const bytes = createArrayBuffer(0x08, 0x01);
1245 const accessor = Kernel.fromArrayBuffer(bytes);
1251 const bytes = createArrayBuffer(0x08, 0x01);
1252 const accessor = Kernel.fromArrayBuffer(bytes);
1259 const bytes = createArrayBuffer(0x08, 0x01);
1260 const accessor = Kernel.fromArrayBuffer(bytes);
1263 bytes[2] = 0x00;
1341 const bytes = createArrayBuffer(0x0D, 0x01, 0x00, 0x00, 0x00);
1342 const accessor = Kernel.fromArrayBuffer(bytes);
1348 const bytes = createArrayBuffer(0x0D, 0x01, 0x00, 0x00, 0x00);
1349 const accessor = Kernel.fromArrayBuffer(bytes);
1356 const bytes = createArrayBuffer(0x0D, 0x01, 0x00, 0x00, 0x00);
1357 const accessor = Kernel.fromArrayBuffer(bytes);
1360 bytes[2] = 0x00;
1437 const bytes =
1439 const accessor = Kernel.fromArrayBuffer(bytes);
1445 const bytes =
1447 const accessor = Kernel.fromArrayBuffer(bytes);
1455 const bytes =
1457 const accessor = Kernel.fromArrayBuffer(bytes);
1460 bytes[2] = 0x00;
1537 const bytes = createArrayBuffer(0x08, 0x01);
1538 const accessor = Kernel.fromArrayBuffer(bytes);
1544 const bytes = createArrayBuffer(0x08, 0x01);
1545 const accessor = Kernel.fromArrayBuffer(bytes);
1552 const bytes = createArrayBuffer(0x08, 0x02);
1553 const accessor = Kernel.fromArrayBuffer(bytes);
1556 bytes[2] = 0x00;
1636 const bytes = createArrayBuffer(0x08, 0x01);
1637 const accessor = Kernel.fromArrayBuffer(bytes);
1643 const bytes = createArrayBuffer(0x08, 0x01);
1644 const accessor = Kernel.fromArrayBuffer(bytes);
1651 const bytes = createArrayBuffer(0x08, 0x02);
1652 const accessor = Kernel.fromArrayBuffer(bytes);
1655 bytes[1] = 0x00;
1728 const bytes = createArrayBuffer(0x0A, 0x01, 0x61);
1729 const accessor = Kernel.fromArrayBuffer(bytes);
1735 const bytes = createArrayBuffer(0x0A, 0x01, 0x61);
1736 const accessor = Kernel.fromArrayBuffer(bytes);
1743 const bytes = createArrayBuffer(0x0A, 0x01, 0x61);
1744 const accessor = Kernel.fromArrayBuffer(bytes);
1747 bytes[2] = 0x00;
1824 const bytes = createArrayBuffer(0x08, 0x01);
1825 const accessor = Kernel.fromArrayBuffer(bytes);
1831 const bytes = createArrayBuffer(0x08, 0x01);
1832 const accessor = Kernel.fromArrayBuffer(bytes);
1839 const bytes = createArrayBuffer(0x08, 0x01);
1840 const accessor = Kernel.fromArrayBuffer(bytes);
1843 bytes[2] = 0x00;
1933 const bytes = createArrayBuffer(0x08, 0x01);
1934 const accessor = Kernel.fromArrayBuffer(bytes);
1940 const bytes = createArrayBuffer(0x08, 0x01);
1941 const accessor = Kernel.fromArrayBuffer(bytes);
1948 const bytes = createArrayBuffer(0x08, 0x01);
1949 const accessor = Kernel.fromArrayBuffer(bytes);
1952 bytes[2] = 0x00;
2027 const bytes =
2029 const accessor = Kernel.fromArrayBuffer(bytes);
2035 const bytes =
2037 const accessor = Kernel.fromArrayBuffer(bytes);
2045 const bytes =
2047 const accessor = Kernel.fromArrayBuffer(bytes);
2050 bytes[2] = 0x00;
2081 const bytes = createArrayBuffer(0x0B, 0x08, 0x01, 0x0C);
2082 const accessor = Kernel.fromArrayBuffer(bytes);
2088 const bytes = createArrayBuffer(0x0B, 0x08, 0x01, 0x0C);
2089 const accessor = Kernel.fromArrayBuffer(bytes);
2095 const bytes = createArrayBuffer(0x0B, 0x08, 0x01, 0x0C);
2096 const accessor = Kernel.fromArrayBuffer(bytes);
2097 expect(accessor.serialize()).toEqual(bytes);
2101 const bytes = createArrayBuffer(0x0B, 0x08, 0x01, 0x0C);
2102 const accessor = Kernel.fromArrayBuffer(bytes);
2104 expect(accessor.serialize()).toEqual(bytes);
2108 const bytes =
2110 const accessor = Kernel.fromArrayBuffer(bytes);
2116 const bytes =
2118 const accessor = Kernel.fromArrayBuffer(bytes);
2125 const bytes =
2127 const accessor = Kernel.fromArrayBuffer(bytes);
2128 expect(accessor.serialize()).toEqual(bytes);
2132 const bytes =
2135 const accessor = Kernel.fromArrayBuffer(bytes);
2141 const bytes = createArrayBuffer(0x08, 0x01);
2143 const subaccessor = Kernel.fromArrayBuffer(bytes);
2265 const bytes = new ArrayBuffer(0);
2266 const accessor = Kernel.fromArrayBuffer(bytes);
2269 .toEqual(bytes);
2273 const bytes = new ArrayBuffer(0);
2274 const accessor = Kernel.fromArrayBuffer(bytes);
2279 const bytes = createArrayBuffer(0x0B, 0x08, 0x02, 0x0C);
2280 const accessor = Kernel.fromArrayBuffer(bytes);
2315 const bytes = createArrayBuffer(
2324 const accessor = Kernel.fromArrayBuffer(bytes);