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

Function hex

restore/702/utils.js:19–21  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

17
18// Return the hexadecimal representation of the given byte.
19function hex(b) {
20 return ('0' + b.toString(16)).substr(-2);
21}
22
23// Return the hexadecimal representation of the given byte array.
24function hexlify(bytes) {

Callers 1

hexlifyFunction · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected