MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / constructor

Method constructor

g2all/900/module/int64.js:42–57  ·  view source on GitHub ↗
(low, high)

Source from the content-addressed store, hash-verified

40// immutable 64-bit integer
41export class Int {
42 constructor(low, high) {
43 if (high === undefined) {
44 this._u32 = new Uint32Array(lohi_from_one(low));
45 return;
46 }
47
48 if (check_not_in_range(low)) {
49 throw TypeError(`low not a 32-bit integer: ${low}`);
50 }
51
52 if (check_not_in_range(high)) {
53 throw TypeError(`high not a 32-bit integer: ${high}`);
54 }
55
56 this._u32 = new Uint32Array([low, high]);
57 }
58
59 get lo() {
60 return this._u32[0];

Callers

nothing calls this directly

Calls 2

lohi_from_oneFunction · 0.70
check_not_in_rangeFunction · 0.70

Tested by

no test coverage detected