compound-binary-file-js
Version:
This is an implementation of [Compound Binary File v.3](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-cfb/53989ce4-7b05-4f8d-829b-d08d6148375b) \ Allows reading existing files, creation of the/write operation
14 lines (13 loc) • 686 B
TypeScript
import { StreamRW } from "./StreamRW";
export declare class StreamHolder {
private readonly regularStreamRW;
private readonly miniStreamRW;
private readonly sizeThreshold;
constructor(regularStreamRW: StreamRW, miniStreamRW: StreamRW, sizeThreshold: number);
private forSize;
getStreamData(startingLocation: number, size: number): number[];
setStreamData(data: number[]): number;
read(startingLocation: number, size: number, fromIncl: number, toExcl: number): number[];
writeAt(startingLocation: number, size: number, position: number, data: number[]): void;
append(startingLocation: number, size: number, data: number[]): number;
}