MCPcopy Create free account
hub / github.com/Norbyte/bg3se / Grow

Method Grow

BG3Extender/GameDefinitions/EntitySystem.cpp:187–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void ComponentFrameStorage::Grow()
188{
189 auto allocSize = ComponentsOnPage(Pages.size());
190 auto page = Pages.allocator().alloc(ComponentSizeInBytes * allocSize);
191 *Pages.add() = page;
192}
193
194uint32_t ComponentFrameStorage::ComponentSizeBucket() const
195{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
allocMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected