/** * The in-memory adapter. * * Layer 5. Zero-copy by construction: a read hands back a `subarray` view over the caller's own * buffer. That is safe precisely because it is the caller's buffer — the "returned array is * owned by the caller" rule exists to stop an adapter handing out a view into state it retains, * and this adapter retains nothing the caller does not already hold. */ import type { ByteSource } from '../types.js'; /** * A `ByteSource` over bytes already in memory, for a file you fetched yourself or a fixture in a * test. The signedness of the view is checked at construction rather than at first read: an * `Int8Array` has one byte per element and would decode into plausible, wrong sample values. */ export declare function byteSource(bytes: ArrayBuffer | Uint8Array): ByteSource; //# sourceMappingURL=bytes.d.ts.map