MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / isBytesLike

Function isBytesLike

lib.esm/utils/data.js:69–71  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

67 * data (i.e. a valid [[DataHexString]] or a Uint8Array).
68 */
69export function isBytesLike(value) {
70 return (isHexString(value, true) || (value instanceof Uint8Array));
71}
72const HexCharacters = "0123456789abcdef";
73/**
74 * Returns a [[DataHexString]] representation of %%data%%.

Callers 8

toQuantityFunction · 0.90
copyRequestFunction · 0.90
#fromSeedMethod · 0.90
blobsMethod · 0.90
toQuantityFunction · 0.90
copyRequestFunction · 0.90
#fromSeedMethod · 0.90
blobsMethod · 0.90

Calls 1

isHexStringFunction · 0.70

Tested by

no test coverage detected