Function numberToBinUint16LEClamped

  • Encode a positive integer as a 2-byte Uint16LE Uint8Array, clamping the results – values exceeding 0xffff (65535) return the same result as 0xffff, negative values will return the same result as 0.

    For an alternative overflow behavior, see numberToBinUint16LE.

    For the reverse, see binToNumberUint16LE.

    Parameters

    • value: number

      the number to encode

    Returns Uint8Array

Generated using TypeDoc