Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1742
function
toPaddedHex(value) {
1743
return
"0x"
+ (
"00"
+ value.toString(16)).slice(-2);
1744
}
1745
1746
function
uuid128toBuffer(uuid128) {
1747
let
uuid = uuid128.replace(/-/g,
''
);
Callers
3
generate
Method · 0.85
generate
Method · 0.85
generate
Method · 0.85
Calls
2
slice
Method · 0.65
toString
Method · 0.45
Tested by
no test coverage detected