MCPcopy
hub / github.com/feross/buffer / allocUnsafe

Function allocUnsafe

index.js:214–217  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

212}
213
214function allocUnsafe (size) {
215 assertSize(size)
216 return createBuffer(size < 0 ? 0 : checked(size) | 0)
217}
218
219/**
220 * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.

Callers 2

BufferFunction · 0.85
index.jsFile · 0.85

Calls 3

assertSizeFunction · 0.85
createBufferFunction · 0.85
checkedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…