Function bytesToI16

  • Converts a Uint8Array into a signed 16-bit integer (i16).

    Parameters

    • arr: Uint8Array

      The array to convert

    • Optional offset: number

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

    Returns number

    The deserialized i16 value

Generated using TypeDoc