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.
0xffffffff
4294967295
0
For an alternative overflow behavior, see numberToBinUint32LE.
For the reverse, see binToNumberUint32LE.
the number to encode
Generated using TypeDoc
Encode a positive integer as a 4-byte Uint32LE Uint8Array, clamping the results – values exceeding
0xffffffff
(4294967295
) return the same result as0xffffffff
, negative values will return the same result as0
.For an alternative overflow behavior, see numberToBinUint32LE.
For the reverse, see binToNumberUint32LE.