public int GetSizeInChunk(Entity entity, int typeIndex, ref int typeLookupCache) { var entityData = m_Entities + entity.Index; return(ChunkDataUtility.GetSizeInChunk(entityData->Chunk, typeIndex, ref typeLookupCache)); }