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
26 lines (25 loc) • 1.22 kB
TypeScript
import { Sectors } from "../Sectors";
import { Header } from "../Header";
import { StreamHolder } from "../stream/StreamHolder";
import { FAT } from "../alloc/FAT";
import { DirectoryEntry, ColorFlag } from "./DirectoryEntry";
import { StreamDirectoryEntry } from "./StreamDirectoryEntry";
import { StorageDirectoryEntry } from "./StorageDirectoryEntry";
import { RootStorageDirectoryEntry } from "./RootStorageDirectoryEntry";
export declare class DirectoryEntryChain {
static readonly UTF16_TERMINATING_BYTES: number[];
private readonly sectors;
private readonly fat;
private readonly header;
private readonly sectorChain;
private readonly streamHolder;
private directoryEntryCount;
constructor(sectors: Sectors, fat: FAT, header: Header, streamHolder: StreamHolder);
private readDirectoryEntryCount;
getRootStorage(): RootStorageDirectoryEntry;
getEntryById(i: number): DirectoryEntry;
createRootStorage(): RootStorageDirectoryEntry;
createStorage(name: string, colorFlag: ColorFlag): StorageDirectoryEntry;
createStream(name: string, colorFlag: ColorFlag, data: number[]): StreamDirectoryEntry;
private getViewForDirectoryEntry;
}