Function byteToU16

  • Converts a Uint8Array into an unsigned 16-bit integer (u16).

    Parameters

    • arr: Uint8Array

      The array to convert

    • Optional offset: number

      The optional offset in the Uint8Array at which to start reading the u16 value (default: 0)

    Returns number

    The deserialized u16 value

Generated using TypeDoc