indexToPointer