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

Function encodeFloat

runtime/src/rt.js:93–99  ·  view source on GitHub ↗
(exps, f)

Source from the content-addressed store, hash-verified

91 return h;
92}
93function encodeFloat(exps, f) {
94 const buf = exps.wasm_alloc(8);
95 new DataView(exps.memory.buffer).setFloat64(buf, f, true);
96 const h = exps.host_edge_encode(TAG_FLOAT, buf, 8);
97 exps.wasm_free(buf, 8);
98 return h;
99}
100
101/* Decode any tag -> JS value; mirrors `decodeBytes` but inspects (not asserts) the tag. */
102function decodeAny(exps, handle) {

Callers 2

makeRtFunction · 0.85
encodeAnyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected