MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / blitBuffer

Function blitBuffer

lib/models/dav.js:3636–3642  ·  view source on GitHub ↗
(src, dst, offset, length)

Source from the content-addressed store, hash-verified

3634}
3635
3636function blitBuffer (src, dst, offset, length) {
3637 for (var i = 0; i < length; ++i) {
3638 if ((i + offset >= dst.length) || (i >= src.length)) break
3639 dst[i + offset] = src[i];
3640 }
3641 return i
3642}
3643
3644function isnan (val) {
3645 return val !== val // eslint-disable-line no-self-compare

Callers 4

utf8WriteFunction · 0.85
asciiWriteFunction · 0.85
base64WriteFunction · 0.85
ucs2WriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected