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

Method enqueueFloat

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

Source from the content-addressed store, hash-verified

143 this.enqueueTxRaw(channel, 'I', bytes);
144 }
145 enqueueFloat(channel, value) {
146 let bytes = new Uint8Array(4);
147 (new DataView(bytes.buffer)).setFloat32(0, value, true);
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);

Callers

nothing calls this directly

Calls 1

enqueueTxRawMethod · 0.95

Tested by

no test coverage detected