• Step try and extract an optional value (null).

    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 null | undefined

    Null if this is optional, undefined otherwise.