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

Function encodeChunk

static/word2md/mammoth.browser.js:3985–3993  ·  view source on GitHub ↗
(uint8, start, end)

Source from the content-addressed store, hash-verified

3983}
3984
3985function encodeChunk (uint8, start, end) {
3986 var tmp
3987 var output = []
3988 for (var i = start; i < end; i += 3) {
3989 tmp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])
3990 output.push(tripletToBase64(tmp))
3991 }
3992 return output.join('')
3993}
3994
3995function fromByteArray (uint8) {
3996 var tmp

Callers 1

fromByteArrayFunction · 0.70

Calls 1

tripletToBase64Function · 0.70

Tested by

no test coverage detected