MCPcopy Create free account
hub / github.com/reactjs/react-rails / blitBuffer

Function blitBuffer

lib/assets/javascripts/JSXTransformer.js:1755–1761  ·  view source on GitHub ↗
(src, dst, offset, length)

Source from the content-addressed store, hash-verified

1753}
1754
1755function blitBuffer (src, dst, offset, length) {
1756 for (var i = 0; i < length; i++) {
1757 if ((i + offset >= dst.length) || (i >= src.length)) break
1758 dst[i + offset] = src[i]
1759 }
1760 return i
1761}
1762
1763function decodeUtf8Char (str) {
1764 try {

Callers 4

utf8WriteFunction · 0.85
asciiWriteFunction · 0.85
base64WriteFunction · 0.85
utf16leWriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected