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

Method toString

g2all/700/module/int64.js:107–120  ·  view source on GitHub ↗
(is_pretty = false)

Source from the content-addressed store, hash-verified

105 }
106
107 toString(is_pretty = false) {
108 if (!is_pretty) {
109 const low = this.lo.toString(16).padStart(8, "0");
110 const high = this.hi.toString(16).padStart(8, "0");
111 return `0x${high}${low}`;
112 }
113 let high = this.hi.toString(16).padStart(8, "0");
114 high = `${high.substring(0, 4)}_${high.substring(4)}`;
115
116 let low = this.lo.toString(16).padStart(8, "0");
117 low = `${low.substring(0, 4)}_${low.substring(4)}`;
118
119 return `0x${high}_${low}`;
120 }
121}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected