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

Method ComponentsOnPage

BG3Extender/GameDefinitions/EntitySystem.cpp:200–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200uint16_t ComponentFrameStorage::ComponentsOnPage(uint32_t page) const
201{
202 auto sizeBucket = ComponentSizeBucket();
203 auto cappedPages = std::min<uint32_t>(page, 8);
204 return FrameAllocatorComponentsPerPage[sizeBucket][cappedPages];
205}
206
207uint32_t ComponentFrameStorage::Capacity() const
208{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected