MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / decodeBool

Function decodeBool

runtime/src/rt.js:61–61  ·  view source on GitHub ↗
(exps, h)

Source from the content-addressed store, hash-verified

59 return Number(new DataView(b.buffer, b.byteOffset, 16).getBigInt64(0, true));
60};
61const decodeBool = (exps, h) => decodeBytes(exps, h, TAG_BOOL)[0] !== 0;
62const decodeFloat = (exps, h) => {
63 const b = decodeBytes(exps, h, TAG_FLOAT);
64 return new DataView(b.buffer, b.byteOffset, 8).getFloat64(0, true);

Callers 1

makeRtFunction · 0.85

Calls 1

decodeBytesFunction · 0.85

Tested by

no test coverage detected