MCPcopy Create free account
hub / github.com/bitpay/bitcore-message / base64Slice

Function base64Slice

bitcore-message.js:1201–1207  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

1199}
1200
1201function base64Slice (buf, start, end) {
1202 if (start === 0 && end === buf.length) {
1203 return base64.fromByteArray(buf)
1204 } else {
1205 return base64.fromByteArray(buf.slice(start, end))
1206 }
1207}
1208
1209function utf8Slice (buf, start, end) {
1210 end = Math.min(buf.length, end)

Callers 1

slowToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected