/** * Bounds-checked slicing. * * Layer 0. Every offset here is a plain JS number — exact to 2^53 — and is never touched by * `|0`, `<<`, `>>` or `>>>`. A data offset in a multi-gigabyte BDF routinely exceeds 2^31, * where every bitwise operator silently wraps it to a negative number. (Bitwise ops are * correct and required for SAMPLE decoding, which operates on 16- and 24-bit values.) */ /** * A VIEW of `length` bytes at `offset`, sharing memory with `bytes` — no copy is made. * * Nothing in edfcore mutates a source buffer, so a view is safe to read for as long as the * buffer lives. A caller that pools or reuses buffers must not retain the view past that * reuse: use `copyBytes` when the bytes have to outlive the read that produced them. */ export declare function sliceBytes(bytes: Uint8Array, offset: number, length: number): Uint8Array; /** `length` bytes at `offset`, copied into a buffer of their own. */ export declare function copyBytes(bytes: Uint8Array, offset: number, length: number): Uint8Array; /** * The RAW, untrimmed text of a fixed-width header field, decoded as ISO-8859-1. * * Untrimmed on purpose: `raw.*` on the header exposes what the file actually wrote, and the * numeric grammars need the padding to tell a right-justified field from a conformant one. * Callers that want the value trim it themselves with `trimEdfField`. */ export declare function readAsciiField(bytes: Uint8Array, offset: number, length: number): string; //# sourceMappingURL=view.d.ts.map