MCPcopy Index your code
hub / github.com/nodejs/node / createUnsafeBuffer

Function createUnsafeBuffer

lib/internal/buffer.js:1097–1105  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

1095}
1096
1097function createUnsafeBuffer(size) {
1098 if (size <= 64) {
1099 // Allocated in heap, doesn't call backing store anyway
1100 // This is the same that the old impl did implicitly, but explicit now
1101 return new FastBuffer(size);
1102 }
1103
1104 return new FastBuffer(createUnsafeArrayBuffer(size));
1105}
1106
1107module.exports = {
1108 FastBuffer,

Callers 3

createPoolFunction · 0.85
buffer.jsFile · 0.85
allocateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…