MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / enqueueDouble

Method enqueueDouble

modules/drivers/sakuraio/sakuraio.js:150–154  ·  view source on GitHub ↗
(channel, value)

Source from the content-addressed store, hash-verified

148 this.enqueueTxRaw(channel, 'f', bytes);
149 }
150 enqueueDouble(channel, value) {
151 let bytes = new Uint8Array(8);
152 (new DataView(bytes.buffer)).setFloat64(0, value, true);
153 this.enqueueTxRaw(channel, 'd', bytes);
154 }
155 enqueueUint8Array(channel, value) {
156 if (8 !== value.length) throw new Error("must be 8 bytes");
157 this.enqueueTxRaw(channel, 'b', value);

Callers

nothing calls this directly

Calls 1

enqueueTxRawMethod · 0.95

Tested by

no test coverage detected