MCPcopy Create free account
hub / github.com/feross/buffer / base64Slice

Function base64Slice

index.js:944–950  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

942}
943
944function base64Slice (buf, start, end) {
945 if (start === 0 && end === buf.length) {
946 return base64.fromByteArray(buf)
947 } else {
948 return base64.fromByteArray(buf.slice(start, end))
949 }
950}
951
952function utf8Slice (buf, start, end) {
953 end = Math.min(buf.length, end)

Callers 1

slowToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected