(exps, f)
| 91 | return h; |
| 92 | } |
| 93 | function 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. */ |
| 102 | function decodeAny(exps, handle) { |