MCPcopy 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
62extern "C" auto malloc(size_t size) -> void* {
63 if (allocator) {
64 return allocator->malloc(size);
65 }
66 return nullptr;
67}
68
69extern "C" auto free(void* ptr) -> void {
70 if (allocator) {

Callers 4

operator newFunction · 0.85
operator new[]Function · 0.85
memory_testFunction · 0.85
IoBufferMethod · 0.85

Calls

no outgoing calls

Tested by 1

memory_testFunction · 0.68