MCPcopy Create free account
hub / github.com/microsoft/SandDance / allocUnsafe

Function allocUnsafe

docs/app/js/sanddance-app.js:112986–112989  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

112984 return alloc(size, fill, encoding);
112985};
112986function allocUnsafe(size) {
112987 assertSize(size);
112988 return createBuffer(size < 0 ? 0 : checked(size) | 0);
112989}
112990/**
112991 * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
112992 * */ Buffer.allocUnsafe = function(size) {

Callers 2

BufferFunction · 0.70
sanddance-app.jsFile · 0.70

Calls 3

assertSizeFunction · 0.70
createBufferFunction · 0.70
checkedFunction · 0.70

Tested by

no test coverage detected