MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / reset

Method reset

modules/engine/runtime/src/ecs/arena.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 reset();
67}
68void block_arena_t::reset()
69{
70 auto iter = first;
71 while (iter != nullptr)
72 {
73 auto next = iter->next;
74 pool.free(iter);
75 iter = next;
76 }
77 curr = 0;
78 last = first = nullptr;
79}
80void* block_arena_t::allocate(size_t s, size_t a)
81{
82 if (s > pool.blockSize)

Callers

nothing calls this directly

Calls 1

freeMethod · 0.45

Tested by

no test coverage detected