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

Function base64Slice

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

Source from the content-addressed store, hash-verified

3542}
3543
3544function base64Slice (buf, start, end) {
3545 if (start === 0 && end === buf.length) {
3546 return base64.fromByteArray(buf)
3547 } else {
3548 return base64.fromByteArray(buf.slice(start, end))
3549 }
3550}
3551
3552function utf8Slice (buf, start, end) {
3553 end = Math.min(buf.length, end)

Callers 1

slowToStringFunction · 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…