MainObjectEntry MainObjectArrayPtr::MainObjectArray::Get(ArrayIndex p_Index) { ArrayIndex Block; ArrayIndex Element; MainObjectEntry Result; if (p_Index >= m_MainObjectCount) return(NoObject); // say there's no space here Block = p_Index / MainObjectEntriesPerBlock; Element = p_Index % MainObjectEntriesPerBlock; Result = m_BlockPtr[Block]->Get(Element); return Result; }