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

Function createBuffer

stackgl_modules/index.js:100–108  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

98 }
99});
100function createBuffer(length) {
101 if (length > K_MAX_LENGTH) {
102 throw new RangeError('The value "' + length + '" is invalid for option "size"');
103 }
104 // Return an augmented `Uint8Array` instance
105 var buf = new Uint8Array(length);
106 Object.setPrototypeOf(buf, Buffer.prototype);
107 return buf;
108}
109
110/**
111 * The Buffer constructor returns instances of `Uint8Array` that have their

Callers 15

allocFunction · 0.85
allocUnsafeFunction · 0.85
fromStringFunction · 0.85
fromArrayLikeFunction · 0.85
fromObjectFunction · 0.85
createABigTriangleFunction · 0.85
createBackgroundCubeFunction · 0.85
createLinesFunction · 0.85
createTextSpritesFunction · 0.85
createVectorMeshFunction · 0.85
createErrorBarsFunction · 0.85
createLinePlotFunction · 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…