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

Function decodeInt

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

Source from the content-addressed store, hash-verified

55
56const decodeStr = (exps, h) => TD.decode(decodeBytes(exps, h, TAG_BYTES));
57const decodeInt = (exps, h) => {
58 const b = decodeBytes(exps, h, TAG_INT);
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);

Callers 1

makeRtFunction · 0.85

Calls 1

decodeBytesFunction · 0.85

Tested by

no test coverage detected