MCPcopy Create free account
hub / github.com/SocketCluster/socketcluster / toHex

Function toHex

app/public/socketcluster-client.js:4259–4262  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

4257}
4258
4259function toHex (n) {
4260 if (n < 16) return '0' + n.toString(16)
4261 return n.toString(16)
4262}
4263
4264function utf8ToBytes (string, units) {
4265 units = units || Infinity

Callers 1

hexSliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…