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

Method Capacity

BG3Extender/GameDefinitions/EntitySystem.cpp:207–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207uint32_t ComponentFrameStorage::Capacity() const
208{
209 if (Pages.size() > 0) {
210 auto sizeBucket = ComponentSizeBucket();
211 auto cappedPages = std::min<uint32_t>(Pages.size() - 1, 8);
212 return FrameAllocatorComponentsAggregate[sizeBucket][cappedPages]
213 + FrameAllocatorComponentsPerPage[sizeBucket][8] * (Pages.size() - cappedPages - 1);
214 } else {
215 return 0;
216 }
217}
218
219void FrameAllocator::Free(void* ptr)
220{

Callers 2

ValidateFunction · 0.45
ValidateRefFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected