MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / allocUnsafe

Function allocUnsafe

lib/sanitize-html.js:791–800  ·  view source on GitHub ↗
(that, size)

Source from the content-addressed store, hash-verified

789}
790
791function allocUnsafe (that, size) {
792 assertSize(size)
793 that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
794 if (!Buffer.TYPED_ARRAY_SUPPORT) {
795 for (var i = 0; i < size; ++i) {
796 that[i] = 0
797 }
798 }
799 return that
800}
801
802/**
803 * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.

Callers 2

BufferFunction · 0.85
sanitize-html.jsFile · 0.85

Calls 3

assertSizeFunction · 0.85
createBufferFunction · 0.85
checkedFunction · 0.85

Tested by

no test coverage detected