/** * BufferReader for parsing binary data using Uint8Array and DataView. * * This class provides platform-agnostic binary parsing that works in * both Node.js and browsers. It does NOT use Node.js Buffer API. */ export declare class BufferReader { private data; private view; private offset; constructor(data: Uint8Array); /** * Get current read offset */ getOffset(): number; /** * Set read offset */ setOffset(offset: number): void; /** * Get total buffer length */ getLength(): number; /** * Check if we can read N bytes from current offset */ canRead(bytes: number): boolean; /** * Read uint8 (1 byte) */ readUInt8(): number; /** * Read uint16 little-endian (2 bytes) */ readUInt16LE(): number; /** * Read uint16 big-endian (2 bytes) */ readUInt16BE(): number; /** * Read uint32 little-endian (4 bytes) */ readUInt32LE(): number; /** * Read float64 (double) little-endian (8 bytes) */ readFloat64LE(): number; /** * Read N bytes as Uint8Array */ readBytes(length: number): Uint8Array; /** * Peek uint8 at offset without advancing */ peekUInt8(offset: number): number; /** * Peek uint16LE at offset without advancing */ peekUInt16LE(offset: number): number; /** * Peek uint16BE at offset without advancing */ peekUInt16BE(offset: number): number; /** * Find the first occurrence of a byte sequence starting from offset */ indexOf(pattern: Uint8Array, startOffset?: number): number; /** * Get a slice of the underlying data without copying */ slice(start: number, end: number): Uint8Array; /** * Get the raw Uint8Array */ getRawData(): Uint8Array; } //# sourceMappingURL=buffer-reader.d.ts.map