Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/d1ll0n/stack-packer
/ padEvenBytes
Function
padEvenBytes
src/lib/bytes.ts:1–4 ·
view source on GitHub ↗
(s: string)
Source
from the content-addressed store, hash-verified
1
const
padEvenBytes = (s: string) => {
2
if
(s.length % 2) s = `0${s}`;
3
return
s;
4
}
5
6
export
const
toHex = (n: number) => {
7
let
bytes = n.toString(16);
Callers
1
getMaxUint
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected