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

Function toPaddedHex

tools/bles2gatt.js:1742–1744  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1740}
1741
1742function toPaddedHex(value) {
1743 return "0x" + ("00" + value.toString(16)).slice(-2);
1744}
1745
1746function uuid128toBuffer(uuid128) {
1747 let uuid = uuid128.replace(/-/g,'');

Callers 3

generateMethod · 0.85
generateMethod · 0.85
generateMethod · 0.85

Calls 2

sliceMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected