Parse a step entity identifier - expecting this token to be A-Z, as they are parsed in upper case.

Hierarchy (View Summary)

Constructors

Properties

Methods

Constructors

Properties

Instance: default = ...

Methods

  • Get the value of a given state for a given value.

    Useful for using this for mappings. Will cause an exception if out of bounds.

    Parameters

    • value: number

      The byte value to lookup.

    • state: number

      The state to get the value for.

    Returns number

  • Match a step enum

    Parameters

    • input: Uint8Array

      The input buffer

    • cursor: number

      The position in the buffer to test for the match.

    • endCursor: number

      The end position in the buffer by which the match must terminate.

    Returns undefined | number

    The length of the match or undefined.