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

Function typedBufferToValue

modules/network/ble/btutils.js:114–117  ·  view source on GitHub ↗
(type, buffer)

Source from the content-addressed store, hash-verified

112}, true);
113
114export function typedBufferToValue(type, buffer) {
115 type = fromArrayBuffer[type];
116 return type ? type(buffer) : buffer;
117}
118
119const hex = "0123456789ABCDEF";
120function toHexString(buffer, delimiter = '') {

Callers 4

onCharacteristicValueMethod · 0.90
onDescriptorValueMethod · 0.90
bleserver.jsFile · 0.90

Calls 1

typeFunction · 0.50

Tested by

no test coverage detected