• Serialise a model's top-level element index to a sidecar blob.

    Type Parameters

    • TypeIDType extends number

    Parameters

    • elements: StepIndexEntry<TypeIDType>[]

      The top-level element index.

    • sourceByteLength: number

      The length of the source it was built from.

    • sourceHash: number

      The source hash (see hashSource).

    Returns Uint8Array

    The sidecar bytes.