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

Function getBytesCopy

lib.commonjs/utils/data.js:47–49  ·  view source on GitHub ↗

* Get a typed Uint8Array for %%value%%, creating a copy if necessary * to prevent any modifications of the returned value from being * reflected elsewhere. * * @see: getBytes

(value, name)

Source from the content-addressed store, hash-verified

45 * @see: getBytes
46 */
47function getBytesCopy(value, name) {
48 return _getBytes(value, name, true);
49}
50exports.getBytesCopy = getBytesCopy;
51/**
52 * Returns true if %%value%% is a valid [[HexString]].

Callers

nothing calls this directly

Calls 1

_getBytesFunction · 0.70

Tested by

no test coverage detected