(buf, start, end)
| 1010 | } |
| 1011 | |
| 1012 | function base64Slice (buf, start, end) { |
| 1013 | if (start === 0 && end === buf.length) { |
| 1014 | return base64.fromByteArray(buf) |
| 1015 | } else { |
| 1016 | return base64.fromByteArray(buf.slice(start, end)) |
| 1017 | } |
| 1018 | } |
| 1019 | |
| 1020 | function utf8Slice (buf, start, end) { |
| 1021 | end = Math.min(buf.length, end) |
no outgoing calls
no test coverage detected
searching dependent graphs…