Converts Uint8Array into number in BigEndian format
Uint8Array to convert
bigint
Converts Uint8Array into number in LittleEndian format
Uint8Array to convert
bigint
Converts number into Uint8Array in BigEndian format
the number to convert
the destination buffer
bigEndianToNewArray - similar to bigEndianToNewArray, but writes to the destination buffer instead of returning a new one
Converts number into Uint8Array in BigEndian format
number to convert
number of bytes to use
Uint8Array
Converts number into Uint8Array in LittleEndian format
the number to convert
the destination buffer
littleEndianToNewArray - similar, but writes to the destination buffer instead
Converts number into Uint8Array in LittleEndian format
the number to convert
number of bytes to use
UncheckedConverter is a set of functions that convert numbers to Uint8Array and vice versa. Implementation should not directly check for overflows or underflows.
This is a low-level interface, and it is not recommended to use it directly. Instead, use BigIntConverter. One possible use case of an UncheckedConverter is for performance reasons, when you are sure that the input is within the boundaries.