Files
libpgs-js/dist/utils/binaryReader.d.ts
T
zoriya bfd15e68bc Commit the build output.
Not for upstream: this branch only exists so a consumer can depend on the fork
straight from git while the `ready` promise waits on a release.
2026-08-26 19:23:04 +02:00

24 lines
574 B
TypeScript

export interface BinaryReader {
/**
* Gets the current position in the binary buffer.
*/
get position(): number;
/**
* Gets the length of the binary buffer.
*/
get length(): number;
/**
* Gets if the binary reader has reached the end of the data.
*/
get eof(): boolean;
/**
* Reads a single byte from this buffer.
*/
readByte(): number;
/**
* Reads the given number of bytes from the buffer.
* @param count The number of bytes to read.
*/
readBytes(count: number): Uint8Array;
}