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.
17 lines
588 B
TypeScript
17 lines
588 B
TypeScript
import { AsyncBinaryReader } from "./asyncBinaryReader";
|
|
/**
|
|
* A binary reader based on a readable stream. This can read a partially loaded stream - for example a download.
|
|
*/
|
|
export declare class StreamBinaryReader implements AsyncBinaryReader {
|
|
private readonly stream;
|
|
private readonly reader;
|
|
private $eof;
|
|
constructor(stream: ReadableStreamDefaultReader<Uint8Array>);
|
|
get position(): number;
|
|
get length(): number;
|
|
get eof(): boolean;
|
|
readByte(): number;
|
|
readBytes(count: number): Uint8Array;
|
|
requestData(count?: number): Promise<boolean>;
|
|
}
|