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

Function getBytes

lib.commonjs/utils/data.js:36–38  ·  view source on GitHub ↗

* Get a typed Uint8Array for %%value%%. If already a Uint8Array * the original %%value%% is returned; if a copy is required use * [[getBytesCopy]]. * * @see: getBytesCopy

(value, name)

Source from the content-addressed store, hash-verified

34 * @see: getBytesCopy
35 */
36function getBytes(value, name) {
37 return _getBytes(value, name, false);
38}
39exports.getBytes = getBytes;
40/**
41 * Get a typed Uint8Array for %%value%%, creating a copy if necessary

Callers 4

hexlifyFunction · 0.70
dataLengthFunction · 0.70
dataSliceFunction · 0.70
zeroPadFunction · 0.70

Calls 1

_getBytesFunction · 0.70

Tested by

no test coverage detected