should have the correct length1ms ‣
async() => {
const length = await reader.getLength();
assert.equal(length, ab.byteLength);
}
should work at 0 offset1ms ‣
async() => {
const data = await reader.read(0, 3);
const view = new Uint8Array(data);
assert.deepEqual(view, new Uint8Array([11, 22, 33]));
}
should work at non 0 offset0ms ‣
async() => {
const data = await reader.read(97, 3);
const view = new Uint8Array(data);
assert.deepEqual(view, new Uint8Array([44, 55, 66]));
}