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

Function blitBuffer

static/word2md/mammoth.browser.js:11469–11475  ·  view source on GitHub ↗
(src, dst, offset, length)

Source from the content-addressed store, hash-verified

11467}
11468
11469function blitBuffer (src, dst, offset, length) {
11470 for (var i = 0; i < length; ++i) {
11471 if ((i + offset >= dst.length) || (i >= src.length)) break
11472 dst[i + offset] = src[i]
11473 }
11474 return i
11475}
11476
11477function isnan (val) {
11478 return val !== val // eslint-disable-line no-self-compare

Callers 4

utf8WriteFunction · 0.70
asciiWriteFunction · 0.70
base64WriteFunction · 0.70
ucs2WriteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected