cubbot/src/core/utils.ts

4 lines
86 B
TypeScript

export function longToNumber(arr: number[]) {
return arr[1] + 4294967296 * arr[0]
}