MCPcopy Create free account
hub / github.com/cryptii/cryptii / hexStringFromBytes

Method hexStringFromBytes

src/ByteEncoder.js:27–31  ·  view source on GitHub ↗

* Returns hex string representing given bytes. * @param {Uint8Array} bytes Bytes * @return {string} Hex string

(bytes)

Source from the content-addressed store, hash-verified

25 * @return {string} Hex string
26 */
27 static hexStringFromBytes (bytes) {
28 return Array.from(bytes)
29 .map(byte => ('0' + byte.toString(16)).slice(-2))
30 .join('')
31 }
32
33 /**
34 * Returns bytes from given hex string.

Callers 6

ByteEncoder.jsFile · 0.80
assertEqualMethod · 0.80
previewMethod · 0.80
getDescriptionMethod · 0.80
updateValueMethod · 0.80
performViewMethod · 0.80

Calls 2

joinMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected