MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / GetInstance

Method GetInstance

tests/unit_test/virtual_memory_test.cpp:24–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22class MockAllocator {
23 public:
24 static auto GetInstance() -> MockAllocator& {
25 static MockAllocator instance;
26 return instance;
27 }
28
29 auto AlignedAlloc(size_t alignment, size_t size) -> void* {
30 void* ptr = nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected