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

Function ptrToString

restore/900goldhen/webkit.js:44–51  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

42 var string_id = 10000000;
43
44 function ptrToString(p) {
45 var s = '';
46 for (var i = 0; i < 8; i++) {
47 s += String.fromCharCode(p % 256);
48 p = (p - p % 256) / 256;
49 }
50 return s;
51 }
52
53 function stringToPtr(p, o) {
54 if (o === undefined)

Callers 2

pocFunction · 0.70
makeReaderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected