MCPcopy 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

1const padEvenBytes = (s: string) => {
2 if (s.length % 2) s = `0${s}`;
3 return s;
4}
5
6export const toHex = (n: number) => {
7 let bytes = n.toString(16);

Callers 1

getMaxUintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected