CFBF entry for CFBF burner.

These entries are stored in same order in CFBF.

The first entry must be TypeEnum#ROOT.

This TypeEnum#ROOT stream represents:

  • The root folder as same as you see in real file system. Including direct children files/folder.
  • The body of minifat.

The secondary entries are collection of items having type either TypeEnum#DIRECTORY or TypeEnum#DOCUMENT.

interface Entry {
    binaryProvider?: () => ArrayLike<number>;
    children?: number[];
    length: number;
    name: string;
    type: TypeEnum;
}

Properties

binaryProvider?: () => ArrayLike<number>

Callback to supply binary data.

This is valid only for TypeEnum#DOCUMENT entry type.

children?: number[]

The indices to sub entries including TypeEnum#DOCUMENT and TypeEnum#DIRECTORY.

This is valid only for TypeEnum#DIRECTORY entry type.

length: number

Binary data length in byte unit.

Has to match with binaryProvider's length.

This is valid only for TypeEnum#DOCUMENT entry type. Otherwise set zero.

name: string

Entry name (max 32 chars).

type: TypeEnum