Lines Matching refs:pChunk
161 uint8_t* pChunk; in AddSpaceTo() local
163 pChunk = (uint8_t*)m_pData->GetAt(index / m_iChunkSize); in AddSpaceTo()
168 pChunk = (uint8_t*)m_pData->GetAt(index / m_iChunkSize); in AddSpaceTo()
171 pChunk = FX_Alloc(uint8_t, iMemSize); in AddSpaceTo()
173 m_pData->SetAt(m_iChunkCount, pChunk); in AddSpaceTo()
175 m_pData->Add(pChunk); in AddSpaceTo()
181 ASSERT(pChunk); in AddSpaceTo()
183 return pChunk + (index % m_iChunkSize) * m_iBlockSize; in AddSpaceTo()
187 uint8_t* pChunk = (uint8_t*)m_pData->GetAt(index / m_iChunkSize); in GetAt() local
188 ASSERT(pChunk); in GetAt()
189 return pChunk + (index % m_iChunkSize) * m_iBlockSize; in GetAt()
331 uint8_t* pChunk = nullptr; in AddSpaceTo() local
334 pChunk = pData->ChunkBuffer.GetAt(iChunk); in AddSpaceTo()
336 if (!pChunk) { in AddSpaceTo()
337 pChunk = FX_Alloc2D(uint8_t, iChunkSize, pData->iBlockSize); in AddSpaceTo()
338 FXSYS_memset(pChunk, 0, iChunkSize * pData->iBlockSize); in AddSpaceTo()
339 pData->ChunkBuffer.SetAtGrow(iChunk, pChunk); in AddSpaceTo()
344 return pChunk + (index % iChunkSize) * pData->iBlockSize; in AddSpaceTo()
354 uint8_t* pChunk = pData->ChunkBuffer.GetAt(iChunk); in GetAt() local
355 if (!pChunk) in GetAt()
358 return pChunk + (index % iChunkSize) * pData->iBlockSize; in GetAt()