MCPcopy Create free account
hub / github.com/zxlie/FeHelper / bytesToHex

Function bytesToHex

apps/en-decode/endecode-lib.js:355–357  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

353 };
354
355 let bytesToHex = function (bytes) {
356 return bytes.map(item => ('0' + (item & 0xff).toString(16)).slice(-2)).join('');
357 };
358
359 let hexDecode = function (str) {
360 return utf8decode(hexToBytes(str));

Callers 2

readLittleEndianHexFunction · 0.85
parseProtoMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected