Function i16ToBytes

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

    Parameters

    • val: number

      The number to convert

    Returns Uint8Array

    A Uint8Array containing the serialized i16 value

    Throws

    Will throw an error if the input value is not within the valid i16 range

Generated using TypeDoc