MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / blitBuffer

Function blitBuffer

lib/sanitize-html.js:2373–2379  ·  view source on GitHub ↗
(src, dst, offset, length)

Source from the content-addressed store, hash-verified

2371}
2372
2373function blitBuffer (src, dst, offset, length) {
2374 for (var i = 0; i < length; ++i) {
2375 if ((i + offset >= dst.length) || (i >= src.length)) break
2376 dst[i + offset] = src[i]
2377 }
2378 return i
2379}
2380
2381function isnan (val) {
2382 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