MCPcopy Index your code
hub / github.com/SocketCluster/socketcluster / allocUnsafe

Function allocUnsafe

app/public/socketcluster-client.js:2830–2833  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

2828}
2829
2830function allocUnsafe (size) {
2831 assertSize(size)
2832 return createBuffer(size < 0 ? 0 : checked(size) | 0)
2833}
2834
2835/**
2836 * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.

Callers 2

BufferFunction · 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…