Package Exports
- @zarrita/typedarray
Readme
@zarrita/typedarray
ArrayBuffer-backed containers for zarrita.js.
Installation
npm install @zarrita/typedarray@nextUsage
import {
BoolArray,
ByteStringArray,
UnicodeStringArray,
} from "@zarrita/typedarray";
let arrs = [
new BoolArray([true, false, true]),
new UnicodeStringArray(5, ["hello", "world"]),
new ByteStringArray(5, ["hello", "world"]),
];
let bytes = arrs.map((a) => new Uint8Array(arr.buffer));Read the documentation to learn more.
License
MIT