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

Function typedValueToBuffer

modules/network/ble/btutils.js:76–79  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

74}, true);
75
76export function typedValueToBuffer(type, value) {
77 type = toArrayBuffer[type];
78 return type ? type(value) : value;
79}
80
81const fromArrayBuffer = Object.freeze({
82 Uint8Array(buffer) {

Callers 4

writeWithoutResponseMethod · 0.90
writeWithoutResponseMethod · 0.90
writeValueMethod · 0.90
bleserver.jsFile · 0.90

Calls 1

typeFunction · 0.50

Tested by

no test coverage detected