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

Function decodeFloat

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

Source from the content-addressed store, hash-verified

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);
65};
66
67function encodeStr(exps, s) {
68 const bytes = TE.encode(s);

Callers 1

makeRtFunction · 0.85

Calls 1

decodeBytesFunction · 0.85

Tested by

no test coverage detected