MCPcopy Create free account
hub / github.com/UI5/webcomponents / blitBuffer

Function blitBuffer

packages/main/test/pages/diffable-html.js:1841–1847  ·  view source on GitHub ↗
(src, dst, offset, length)

Source from the content-addressed store, hash-verified

1839 }
1840
1841 function blitBuffer (src, dst, offset, length) {
1842 for (var i = 0; i < length; ++i) {
1843 if ((i + offset >= dst.length) || (i >= src.length)) break
1844 dst[i + offset] = src[i]
1845 }
1846 return i
1847 }
1848
1849 // ArrayBuffers from another context (i.e. an iframe) do not pass the `instanceof` check
1850 // but they should be treated as valid. See: https://github.com/feross/buffer/issues/166

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…