• Extract a STEP number

    Parameters

    • buffer: Uint8Array

      The buffer to extract it from.

    • cursor: number

      The position in the buffer to try and extract it from.

    • endCursor: number

      The last position accessible for this read in the buffer.

    Returns number | undefined

    The number if it can be extracted, undefined otherwise.