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

Function hexSlice

app/public/socketcluster-client.js:3668–3679  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

3666}
3667
3668function hexSlice (buf, start, end) {
3669 var len = buf.length
3670
3671 if (!start || start < 0) start = 0
3672 if (!end || end < 0 || end > len) end = len
3673
3674 var out = ''
3675 for (var i = start; i < end; ++i) {
3676 out += toHex(buf[i])
3677 }
3678 return out
3679}
3680
3681function utf16leSlice (buf, start, end) {
3682 var bytes = buf.slice(start, end)

Callers 1

slowToStringFunction · 0.85

Calls 1

toHexFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…