Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Simple-XX/SimpleKernel
/ malloc
Function
malloc
src/memory/memory.cpp:62–67 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
60
} // namespace
61
62
extern
"C"
auto malloc(size_t size) -> void* {
63
if (allocator) {
64
return allocator->malloc(size);
65
}
66
return nullptr;
67
}
68
69
extern
"C"
auto free(void* ptr) -> void {
70
if (allocator) {
Callers
4
operator new
Function · 0.85
operator new[]
Function · 0.85
memory_test
Function · 0.85
IoBuffer
Method · 0.85
Calls
no outgoing calls
Tested by
1
memory_test
Function · 0.68