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

Function alloc

test/ffi/test-ffi-memory.js:23–27  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

21 const allocations = new Set();
22
23 function alloc(size) {
24 const ptr = symbols.allocate_memory(BigInt(size));
25 allocations.add(ptr);
26 return ptr;
27 }
28
29 try {
30 fn(alloc);

Callers 2

test-ffi-memory.jsFile · 0.85
make_objects.jsFile · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…