@obsidize/tar-browserify
Version:
Browser-based tar utility for packing and unpacking tar files (stream-capable)
18 lines (17 loc) • 624 B
TypeScript
/**
* Generalized iterface for interacting with buffers that we only have a partial view into.
*/
export interface AsyncUint8ArrayLike {
readonly byteLength: number;
read(offset: number, length: number): Promise<Uint8Array>;
}
/**
* Built-in wrapper for basic in-memory buffers so they
* can be transposed to fit the shared `AsyncUint8ArrayLike` format.
*/
export declare class InMemoryAsyncUint8Array implements AsyncUint8ArrayLike {
private readonly input;
constructor(input: Uint8Array);
get byteLength(): number;
read(offset: number, length: number): Promise<Uint8Array>;
}