Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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.js
File · 0.85
make_objects.js
File · 0.85
Calls
1
add
Method · 0.65
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…