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

Function hexlify

restore/702/utils.js:24–30  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

22
23// Return the hexadecimal representation of the given byte array.
24function hexlify(bytes) {
25 var res = [];
26 for (var i = 0; i < bytes.length; i++)
27 res.push(hex(bytes[i]));
28
29 return res.join('');
30}
31
32// Return the binary data represented by the given hexdecimal string.
33function unhexlify(hexstr) {

Callers 1

Int64Function · 0.70

Calls 1

hexFunction · 0.70

Tested by

no test coverage detected