UNPKG

381 BTypeScriptView Raw
1/**
2 * Generic interface for types with binary backing buffers.
3 */
4export interface IBuffered<T> {
5 /**
6 * An implementation's publicly accessible backing array /
7 * ArrayBuffer (usually a typed array instance).
8 */
9 buffer: T;
10 /**
11 * Returns an Uint8Array view of backing array.
12 */
13 bytes?(): Uint8Array;
14}
15//# sourceMappingURL=buffered.d.ts.map
\No newline at end of file