-------------------- ComponentPool::At typeless element access
| 17 | // typeless element access |
| 18 | // |
| 19 | void* 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 |
no test coverage detected