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

Function allocUnsafe

stackgl_modules/index.js:207–210  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

205 return alloc(size, fill, encoding);
206};
207function allocUnsafe(size) {
208 assertSize(size);
209 return createBuffer(size < 0 ? 0 : checked(size) | 0);
210}
211
212/**
213 * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.

Callers 2

BufferFunction · 0.85
index.jsFile · 0.85

Calls 3

createBufferFunction · 0.85
checkedFunction · 0.85
assertSizeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…