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
25 lines (24 loc) • 920 B
TypeScript
import { CFDataview } from "./dataview/СFDataview";
import "./Long";
import { RootStorageDirectoryEntry } from "./directory/RootStorageDirectoryEntry";
export declare class CompoundFile {
private readonly header;
private readonly difat;
private readonly sectors;
private readonly fat;
private readonly miniFat;
private readonly directoryEntryChain;
private dataView;
static fromBytes(bytes: number[]): CompoundFile;
static fromUint8Array(bytes: Uint8Array): CompoundFile;
constructor(dataView?: CFDataview);
private static empty;
getMiniStreamFirstSectorLocation(): number;
getMiniStreamLength(): number;
setMiniStreamFirstSectorLocation(position: number): void;
setMiniStreamLength(size: number): void;
getRootStorage(): RootStorageDirectoryEntry;
asBytes(): number[];
rewrite(): CompoundFile;
private copyConsumer;
}