MCPcopy Create free account
hub / github.com/Illation/ETEngine / At

Method At

Engine/source/EtFramework/ECS/ComponentPool.cpp:19–25  ·  view source on GitHub ↗

-------------------- ComponentPool::At typeless element access

Source from the content-addressed store, hash-verified

17// typeless element access
18//
19void* ComponentPool::At(size_t const idx)
20{
21 size_t const byteIdx = idx * ComponentRegistry::Instance().GetSize(m_ComponentType);
22 ET_ASSERT(byteIdx < m_Buffer.size());
23
24 return &m_Buffer[byteIdx];
25}
26
27//--------------------
28// ComponentPool::At

Callers 6

InitMethod · 0.80
RemoveAllEntitiesMethod · 0.80
AddComponentsMethod · 0.80
GetComponentDataMethod · 0.80
GetComponentsAndTypesMethod · 0.80

Calls 1

GetSizeMethod · 0.45

Tested by

no test coverage detected