Interface DynamicSizeBuilderWithOptions

Options for the static BinaryEncoder.dynamicallySized method.

interface DynamicSizeBuilderWithOptions {
    builder: DynamicSizeBuilder;
    chunkSize?: number;
    endianness?: Endianness;
    initialOffset?: number;
    minimumSize?: number;
}

Properties

Function that builds the encoder with dynamic resizing.

chunkSize?: number

Number of bytes to add on overflow (256 by default).

endianness?: Endianness

Endianness to use in the encoder (little endian by default).

initialOffset?: number

Initial offset to use in the encoder (0 by default).

minimumSize?: number

If provided, the resulting encoder will have at least this many bytes.