Linearly interpolate a number between 0 and 1 to be between the lower and upper bound.
See unlerp
for the opposite of this.
Lower bound
Upper bound
Value to lerp
Pack a number into the smallest number of bytes possible.
Number to pack
Read and return a packed number from a buffer, incrementing the offset by the number of bytes.
Buffer to read from
Reverse of lerp
. Takes a value between the lower and upper bound and maps it to a number between 0 and 1.
Lower bound
Upper bound
Value to unlerp
Converts a V2 game code into its number form.
Game code as a string
Converts a V2 game code as a number into a human-readable string
Game code as a number
Generated using TypeDoc
Sus | Among JS
General utilities for reading bytes and more. This is part of Among JS, a simple and flexible library for interacting with the Among Us protocol.