Function numberToBinUint32LEClamped

  • Encode a positive integer as a 4-byte Uint32LE Uint8Array, clamping the results – values exceeding 0xffffffff (4294967295) return the same result as 0xffffffff, negative values will return the same result as 0.

    For an alternative overflow behavior, see numberToBinUint32LE.

    For the reverse, see binToNumberUint32LE.

    Parameters

    • value: number

      the number to encode

    Returns Uint8Array

Generated using TypeDoc