MCPcopy Create free account
hub / github.com/TruthHun/BookStack / base64Slice

Function base64Slice

static/word2md/mammoth.browser.js:10601–10607  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

10599}
10600
10601function base64Slice (buf, start, end) {
10602 if (start === 0 && end === buf.length) {
10603 return base64.fromByteArray(buf)
10604 } else {
10605 return base64.fromByteArray(buf.slice(start, end))
10606 }
10607}
10608
10609function utf8Slice (buf, start, end) {
10610 end = Math.min(buf.length, end)

Callers 1

slowToStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected