Reads 4 bytes from array starting at offset as little-endian 32-bit floating-point number and returns it.
Reads 8 bytes from array starting at offset as big-endian 64-bit floating-point number ("double") and returns it.
Reads 8 bytes from array starting at offset as little-endian 64-bit floating-point number ("double") and returns it.
Reads 2 bytes from array starting at offset as big-endian signed 16-bit integer and returns it.
Reads 2 bytes from array starting at offset as little-endian signed 16-bit integer and returns it.
Reads 4 bytes from array starting at offset as big-endian signed 32-bit integer and returns it.
Reads 4 bytes from array starting at offset as little-endian signed 32-bit integer and returns it.
Reads 8 bytes from array starting at offset as big-endian signed 64-bit integer and returns it.
IMPORTANT: due to JavaScript limitation, supports exact numbers in range -9007199254740991 to 9007199254740991. If the number stored in the byte array is outside this range, the result is not exact.
Reads 8 bytes from array starting at offset as little-endian signed 64-bit integer and returns it.
IMPORTANT: due to JavaScript limitation, supports exact numbers in range -9007199254740991 to 9007199254740991. If the number stored in the byte array is outside this range, the result is not exact.
Reads 2 bytes from array starting at offset as big-endian unsigned 16-bit integer and returns it.
Reads 2 bytes from array starting at offset as little-endian unsigned 16-bit integer and returns it.
Reads 4 bytes from array starting at offset as big-endian unsigned 32-bit integer and returns it.
Reads 4 bytes from array starting at offset as little-endian unsigned 32-bit integer and returns it.
Reads 8 bytes from array starting at offset as big-endian unsigned 64-bit integer and returns it.
IMPORTANT: due to JavaScript limitation, supports values up to 2^53-1.
Reads 8 bytes from array starting at offset as little-endian unsigned 64-bit integer and returns it.
IMPORTANT: due to JavaScript limitation, supports values up to 2^53-1.
Reads bytes from array starting at offset as big-endian unsigned bitLen-bit integer and returns it.
Supports bit lengths divisible by 8, up to 48.
Reads bytes from array starting at offset as little-endian unsigned bitLen-bit integer and returns it.
Supports bit lengths divisible by 8, up to 48.
Writes 4-byte big-endian floating-point representation of value to byte array starting at offset.
If byte array is not given, creates a new 4-byte one.
Returns the output byte array.
Writes 4-byte little-endian floating-point representation of value to byte array starting at offset.
If byte array is not given, creates a new 4-byte one.
Returns the output byte array.
Writes 8-byte big-endian floating-point representation of value to byte array starting at offset.
If byte array is not given, creates a new 8-byte one.
Returns the output byte array.
Writes 8-byte little-endian floating-point representation of value to byte array starting at offset.
If byte array is not given, creates a new 8-byte one.
Returns the output byte array.
Writes 2-byte big-endian representation of 16-bit unsigned value to byte array starting at offset.
If byte array is not given, creates a new 2-byte one.
Returns the output byte array.
Writes 2-byte little-endian representation of 16-bit unsigned value to array starting at offset.
If byte array is not given, creates a new 2-byte one.
Returns the output byte array.
Writes 4-byte big-endian representation of 32-bit unsigned value to byte array starting at offset.
If byte array is not given, creates a new 4-byte one.
Returns the output byte array.
Writes 4-byte little-endian representation of 32-bit unsigned value to array starting at offset.
If byte array is not given, creates a new 4-byte one.
Returns the output byte array.
Writes 8-byte big-endian representation of 64-bit unsigned value to byte array starting at offset.
Due to JavaScript limitation, supports values up to 2^53-1.
If byte array is not given, creates a new 8-byte one.
Returns the output byte array.
Writes 8-byte little-endian representation of 64-bit unsigned value to byte array starting at offset.
Due to JavaScript limitation, supports values up to 2^53-1.
If byte array is not given, creates a new 8-byte one.
Returns the output byte array.
Writes a big-endian representation of bitLen-bit unsigned value to array starting at offset.
Supports bit lengths divisible by 8, up to 48.
If byte array is not given, creates a new one.
Returns the output byte array.
Writes a little-endian representation of bitLen-bit unsigned value to array starting at offset.
Supports bit lengths divisible by 8, up to 48.
If byte array is not given, creates a new one.
Returns the output byte array.
Generated using TypeDoc
Reads 4 bytes from array starting at offset as big-endian 32-bit floating-point number and returns it.