• Home
  • Raw
  • Download

Lines Matching refs:Uint8Array

256   const read = reader.read(new Uint8Array(1));
360 assert_equals(viewInfo.constructor, Uint8Array, 'first view.constructor should be Uint8Array');
370 assert_equals(value.constructor, Uint8Array, 'first value should be a Uint8Array');
379 assert_equals(viewInfo.constructor, Uint8Array, 'second view.constructor should be Uint8Array');
389 assert_equals(value.constructor, Uint8Array, 'second value should be a Uint8Array');
436 assert_equals(value.constructor, Uint8Array, 'first value should be a Uint8Array');
445 assert_equals(viewInfo.constructor, Uint8Array, 'first view.constructor should be Uint8Array');
452 return byobReader.read(new Uint8Array(32));
456 assert_equals(value.constructor, Uint8Array, 'second value should be a Uint8Array');
466 assert_equals(viewInfo.constructor, Uint8Array, 'second view.constructor should be Uint8Array');
487 reader.read(new Uint8Array(8));
505 c.enqueue(new Uint8Array(16));
535 assert_equals(view.constructor, Uint8Array, 'view.constructor');
559 assert_equals(view.constructor, Uint8Array);
565 controller.enqueue(new Uint8Array(1));
591 assert_equals(view.constructor, Uint8Array);
601 const view = new Uint8Array(16);
612 return byobReader.read(new Uint8Array(8)).then(result => {
616 assert_equals(view.constructor, Uint8Array, 'value.constructor');
631 assert_equals(view.constructor, Uint8Array, 'value.constructor');
652 controller.enqueue(new Uint8Array(16));
672 c.enqueue(new Uint8Array(16));
704 controller.enqueue(new Uint8Array(16));
733 controller.enqueue(new Uint8Array(1));
735 controller.enqueue(new Uint8Array(1));
752 controller.enqueue(new Uint8Array(1));
785 c.enqueue(new Uint8Array(1));
851 return reader.read(new Uint8Array(1)).then(result => {
891 return reader.read(new Uint8Array(1)).then(result => {
927 return reader.read(new Uint8Array(1)).then(() => {
975 return reader.read(new Uint8Array(1));
979 assert_equals(viewInfo.constructor, Uint8Array, 'view.constructor should be Uint8Array');
998 const view = new Uint8Array(16);
1008 return reader.read(new Uint8Array(16)).then(result => {
1026 c.enqueue(new Uint8Array(16));
1056 c.enqueue(new Uint8Array(16));
1105 const readPromise = reader.read(new Uint8Array(1)).then(result => {
1134 controller.enqueue(new Uint8Array(1));
1170 const view = new Uint8Array(8);
1186 return reader.read(new Uint8Array(buffer, 8, 8)).then(result => {
1192 assert_equals(view.constructor, Uint8Array);
1209 view = new Uint8Array(16);
1213 view = new Uint8Array(8);
1227 return reader.read(new Uint8Array(24)).then(result => {
1245 const view = new Uint8Array(16);
1257 return reader.read(new Uint8Array(24)).then(result => {
1274 const view = new Uint8Array(16);
1287 return reader.read(new Uint8Array(8)).then(result => {
1295 return reader.read(new Uint8Array(8));
1314 const view = new Uint8Array(1);
1346 assert_equals(viewInfo.constructor, Uint8Array, 'view.constructor should be Uint8Array');
1363 const view = new Uint8Array(3);
1420 assert_equals(viewInfo.constructor, Uint8Array, 'view.constructor should be Uint8Array');
1436 const view = new Uint8Array(1);
1458 const view = new Uint8Array(1);
1491 const view = new Uint8Array(1);
1510 const view = new Uint8Array(1);
1540 return reader.read(new Uint8Array(16)).then(result => {
1548 return reader.read(new Uint8Array(16));
1557 assert_equals(viewInfo.constructor, Uint8Array, 'view.constructor should be Uint8Array');
1607 assert_equals(viewInfos[i].constructor, Uint8Array, 'view.constructor should be Uint8Array');
1638 controller.enqueue(new Uint8Array([0x01]));
1660 assert_equals(viewInfos[i].constructor, Uint8Array, 'view.constructor should be Uint8Array');
1694 controller.enqueue(new Uint8Array(2));
1702 assert_equals(view.constructor, Uint8Array);
1716 assert_equals(view.constructor, Uint8Array);
1726 controller.enqueue(new Uint8Array(1));
1746 const p0 = reader.read(new Uint8Array(16)).then(result => {
1755 const p1 = reader.read(new Uint8Array(32)).then(result => {
1783 const p0 = reader.read(new Uint8Array(16)).then(result => {
1792 const p1 = reader.read(new Uint8Array(16)).then(result => {
1801 controller.enqueue(new Uint8Array(24));
1822 return reader.read(new Uint8Array(7)).then(result => {
1835 controller.enqueue(new Uint8Array(512));
1836 controller.enqueue(new Uint8Array(512));
1923 return promise_rejects_exactly(t, error1, reader.read(new Uint8Array(1)), 'read() must fail');
1938 …const promise = promise_rejects_exactly(t, error1, reader.read(new Uint8Array(1)), 'read() must fa…
2004 …return promise_rejects_exactly(t, testError, reader.read(new Uint8Array(1)), 'read(view) must fail…
2023 return promise_rejects_exactly(t, error1, reader.read(new Uint8Array(1)), 'read(view) must fail')
2039 const view = new Uint8Array(16);
2047 const newView = () => new Uint8Array(16);
2084 const readPromise = reader.read(new Uint8Array(16));
2117 const readPromise = reader.read(new Uint8Array(16));
2142 const read = reader.read(new Uint8Array(16));
2227 const view = new Uint8Array(c.byobRequest.view.buffer, 0, 1);
2236 const result = await reader.read(new Uint8Array([4, 5, 6]));
2244 assert_array_equals([...new Uint8Array(view.buffer)], [1, 5, 6], 'result.value.buffer');
2250 const view = new Uint8Array(c.byobRequest.view.buffer, 0, 0);
2260 const result = await reader.read(new Uint8Array([4, 5, 6]));
2267 assert_array_equals([...new Uint8Array(view.buffer)], [4, 5, 6], 'result.value.buffer');
2287 const readPromise = reader.read(new Uint8Array([4, 5, 6]));
2305 assert_array_equals([...new Uint8Array(view.buffer)], [42, 5, 6], 'result.value.buffer');
2327 const readPromise = reader.read(new Uint8Array([4, 5, 6]));
2344 assert_array_equals([...new Uint8Array(view.buffer)], [4, 5, 6], 'result.value.buffer');
2373 controller.enqueue(new Uint8Array([1, 2, 3]));
2381 assert_array_equals([...new Uint8Array(view1.buffer)], [1, 2, 3], 'first result.value.buffer');
2387 const read2 = reader2.read(new Uint8Array([4, 5, 6]));
2392 …assert_array_equals([...new Uint8Array(byobRequest2.view.buffer)], [4, 5, 6], 'second byobRequest.…
2402 assert_array_equals([...new Uint8Array(view2.buffer)], [4, 5, 6], 'second result.value.buffer');
2419 const read1 = reader1.read(new Uint8Array([1, 2, 3]));
2422 assert_typed_array_equals(byobRequest1.view, new Uint8Array([1, 2, 3]), 'first byobRequest.view');
2427 const read2 = reader2.read(new Uint8Array([4, 5, 6]));
2430 …assert_array_equals([...new Uint8Array(byobRequest1.view.buffer)], [1, 2, 3], 'byobRequest.view.bu…
2441 …assert_typed_array_equals(result2.value, new Uint8Array([11, 5, 6]).subarray(0, 1), 'second result…
2456 const read1 = reader1.read(new Uint8Array([1, 2, 3]));
2459 assert_typed_array_equals(byobRequest1.view, new Uint8Array([1, 2, 3]), 'first byobRequest.view');
2467 …assert_array_equals([...new Uint8Array(byobRequest1.view.buffer)], [1, 2, 3], 'byobRequest.view.bu…
2477 …assert_typed_array_equals(byobRequest2.view, new Uint8Array([0x11, 0]).subarray(1, 2), 'second byo…
2504 const read1 = reader1.read(new Uint8Array([1, 2, 3]));
2507 assert_typed_array_equals(byobRequest1.view, new Uint8Array([1, 2, 3]), 'first byobRequest.view');
2512 const read2 = reader2.read(new Uint8Array([4, 5]));
2515 …assert_array_equals([...new Uint8Array(byobRequest1.view.buffer)], [1, 2, 3], 'byobRequest.view.bu…
2528 assert_typed_array_equals(result2.value, new Uint8Array([6, 7]), 'second result.value');
2531 const result3 = await reader2.read(new Uint8Array([0, 0, 0]));
2533 …assert_typed_array_equals(result3.value, new Uint8Array([8, 0, 0]).subarray(0, 1), 'third result.v…
2549 const read1 = reader1.read(new Uint8Array([1, 2, 3]));
2552 assert_typed_array_equals(byobRequest1.view, new Uint8Array([1, 2, 3]), 'first byobRequest.view');
2557 const read2 = reader2.read(new Uint8Array([4, 5, 6]));
2570 …assert_typed_array_equals(result2.value, new Uint8Array([11, 12, 6]).subarray(0, 2), 'second resul…
2585 const read1 = reader1.read(new Uint8Array([1, 2, 3]));
2588 assert_typed_array_equals(byobRequest1.view, new Uint8Array([1, 2, 3]), 'first byobRequest.view');
2593 const read2 = reader2.read(new Uint8Array([4, 5, 6]));
2598 controller.enqueue(new Uint8Array([11, 12]));
2604 …assert_typed_array_equals(result2.value, new Uint8Array([11, 12, 6]).subarray(0, 2), 'second resul…
2619 const read1 = reader1.read(new Uint8Array([1, 2, 3]));
2622 assert_typed_array_equals(byobRequest1.view, new Uint8Array([1, 2, 3]), 'first byobRequest.view');
2627 const read2 = reader2.read(new Uint8Array([4, 5, 6]));
2639 …assert_typed_array_equals(result2.value, new Uint8Array([4, 5, 6]).subarray(0, 0), 'second result.…
2658 assert_typed_array_equals(byobRequest1.view, new Uint8Array(4), 'first byobRequest.view');
2675 …assert_typed_array_equals(result2.value, new Uint8Array([11, 0, 0, 0]).subarray(0, 1), 'second res…
2694 assert_typed_array_equals(byobRequest1.view, new Uint8Array(4), 'first byobRequest.view');
2704 controller.enqueue(new Uint8Array([11]));
2710 assert_typed_array_equals(result2.value, new Uint8Array([11]), 'second result.value');
2729 assert_typed_array_equals(byobRequest1.view, new Uint8Array(4), 'first byobRequest.view');
2734 const read2 = reader2.read(new Uint8Array([4, 5, 6]));
2746 …assert_typed_array_equals(result2.value, new Uint8Array([11, 5, 6]).subarray(0, 1), 'second result…
2765 assert_typed_array_equals(byobRequest1.view, new Uint8Array(4), 'first byobRequest.view');
2770 const read2 = reader2.read(new Uint8Array([4, 5, 6]));
2775 controller.enqueue(new Uint8Array([11]));
2781 …assert_typed_array_equals(result2.value, new Uint8Array([11, 5, 6]).subarray(0, 1), 'second result…
2799 assert_typed_array_equals(byobRequest1.view, new Uint8Array([0, 0]), 'first byobRequest.view');
2806 …assert_typed_array_equals(byobRequest2.view, new Uint8Array([0x11, 0]).subarray(1, 2), 'second byo…
2814 …assert_typed_array_equals(byobRequest2.view, new Uint8Array([0x11, 0]).subarray(1, 2), 'byobReques…
2847 assert_typed_array_equals(byobRequest1.view, new Uint8Array([0, 0]), 'first byobRequest.view');
2854 …assert_typed_array_equals(byobRequest2.view, new Uint8Array([0x11, 0]).subarray(1, 2), 'second byo…
2862 …assert_typed_array_equals(byobRequest2.view, new Uint8Array([0x11, 0]).subarray(1, 2), 'byobReques…
2866 controller.enqueue(new Uint8Array([0x22]));
2871 assert_typed_array_equals(result2.value, new Uint8Array([0x11]), 'second result.value');
2875 assert_typed_array_equals(result3.value, new Uint8Array([0x22]), 'third result.value');
2886 const newView = new Uint8Array(c.byobRequest.view.buffer, 0, 3);
2900 assert_array_equals([...new Uint8Array(view)], [20, 21, 22], 'result.value');