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
16 lines (15 loc) • 684 B
TypeScript
import { FAT } from "../alloc/FAT";
import { Header } from "../Header";
import { Sectors } from "../Sectors";
import { StreamRW } from "./StreamRW";
export declare class RegularStreamRW implements StreamRW {
private readonly fat;
private readonly sectors;
private readonly header;
constructor(fat: FAT, sectors: Sectors, header: Header);
read(startingSector: number, lengthOrFromIncl: number, toExcl?: number): number[];
write(data: number[]): number;
writeAt(startingSector: number, position: number, data: number[]): void;
append(startingSector: number, currentSize: number, data: number[]): number;
private howManyChunksNeeded;
}