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

Function fromArrayView

stackgl_modules/index.js:250–256  ·  view source on GitHub ↗
(arrayView)

Source from the content-addressed store, hash-verified

248 return buf;
249}
250function fromArrayView(arrayView) {
251 if (isInstance(arrayView, Uint8Array)) {
252 var copy = new Uint8Array(arrayView);
253 return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
254 }
255 return fromArrayLike(arrayView);
256}
257function fromArrayBuffer(array, byteOffset, length) {
258 if (byteOffset < 0 || array.byteLength < byteOffset) {
259 throw new RangeError('"offset" is outside of buffer bounds');

Callers 1

fromFunction · 0.85

Calls 3

isInstanceFunction · 0.85
fromArrayBufferFunction · 0.85
fromArrayLikeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…