Coda by Ian Macalinao
    Preparing search index...

    Interface ConstantDiscriminatorNode<TConstant>

    Identifies a node by a constant value at a known byte offset (e.g. a magic header).

    interface ConstantDiscriminatorNode<
        TConstant extends ConstantValueNode = ConstantValueNode,
    > {
        constant: TConstant;
        kind: "constantDiscriminatorNode";
        offset: number;
    }

    Type Parameters

    Index
    constant: TConstant

    The constant value expected at the offset.

    kind: "constantDiscriminatorNode"
    offset: number

    The byte offset at which the constant begins.