blob: 9f2a4643c41861f72ad16f7f45d3a04884a6f083 [file] [log] [blame]
import LowLevelBinary from '../LowLevelBinary.js';
let b = new LowLevelBinary();
for (let i = 0; i !== 1024 * 3; ++i)
b.uint32(i);
for (let i = 0; i !== 1024 * 3; ++i) {
let v = b.getUint32(i * 4);
if (v !== i)
throw new Error(`Wrote "${i}" and read back "${v}"`);
}