Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Houseofmvps/codesight
/ alloc
Function
alloc
reference/ast-plugin/assembly/index.ts:36–38 ·
view source on GitHub ↗
(len: i32)
Source
from the content-addressed store, hash-verified
34
// ─── ABI: memory management ───
35
36
export
function
alloc(len: i32): i32 {
37
return
heap.alloc(<usize>len) as i32;
38
}
39
40
export
function
dealloc(ptr: i32, len: i32): void {
41
heap.free(<usize>ptr);
Callers
nothing calls this directly
Calls
1
alloc
Method · 0.80
Tested by
no test coverage detected