mirror of
https://github.com/zoriya/libpgs-js.git
synced 2026-08-27 00:00:51 +00:00
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.
24 lines
574 B
TypeScript
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;
|
|
}
|