Encode a V-Table for a semi-parsed STEP serialized object, by encoding the byte positions of all the fields.

Constructors

Accessors

Methods

Constructors

  • Construct this with an initial buffer allocation.

    Parameters

    • startingBufferSize: number = 16

      The initial size of the buffer to allocate, in 32 bit intervals.

    Returns default

Accessors

  • get buffer(): Uint32Array
  • Get the buffer associated with this V-Table

    Returns Uint32Array

    The buffer associated with this v-table builder that contains the addresses.

Methods

  • Clear this out, note that anything using the table should also be invalidated.

    Parameters

    • dropBuffer: boolean = false

      Should we also drop the buffer to allow it to be garbage collected, or should we drop it and allow the memory to be reclaimed.

    Returns void

  • Complete a row of vtable entries in the buffer, returning the index mark of the vtable run + the number of entries.

    Parameters

    • endCursor: number

    Returns [number, number, number]

    The index mark (i.e. location in the buffer this run exists), the number of entries, and the last cursor position.