MCPcopy Index your code
hub / github.com/TruthHun/BookStack / allocUnsafe

Function allocUnsafe

static/word2md/mammoth.browser.js:9887–9896  ·  view source on GitHub ↗
(that, size)

Source from the content-addressed store, hash-verified

9885}
9886
9887function allocUnsafe (that, size) {
9888 assertSize(size)
9889 that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
9890 if (!Buffer.TYPED_ARRAY_SUPPORT) {
9891 for (var i = 0; i < size; ++i) {
9892 that[i] = 0
9893 }
9894 }
9895 return that
9896}
9897
9898/**
9899 * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.

Callers 2

BufferFunction · 0.70
mammoth.browser.jsFile · 0.70

Calls 3

assertSizeFunction · 0.70
createBufferFunction · 0.70
checkedFunction · 0.70

Tested by

no test coverage detected