MCPcopy Index your code
hub / github.com/plotly/plotly.js / blitBuffer

Function blitBuffer

stackgl_modules/index.js:1506–1512  ·  view source on GitHub ↗
(src, dst, offset, length)

Source from the content-addressed store, hash-verified

1504 return base64.toByteArray(base64clean(str));
1505}
1506function blitBuffer(src, dst, offset, length) {
1507 for (var i = 0; i < length; ++i) {
1508 if (i + offset >= dst.length || i >= src.length) break;
1509 dst[i + offset] = src[i];
1510 }
1511 return i;
1512}
1513
1514// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass
1515// the `instanceof` check but they should be treated as of that type.

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…