Lines Matching defs:pSegment
197 void* pSegment = FX_Allocator_Alloc(m_pAllocator, FX_BYTE, m_UnitSize * m_SegmentSize);
198 if (!pSegment) {
202 m_pIndex = pSegment;
204 return pSegment;
209 FX_Allocator_Free(m_pAllocator, pSegment);
214 pIndex[1] = pSegment;
218 return pSegment;
223 pIndex[seg_index % m_IndexSize] = pSegment;
225 return pSegment;
235 FX_Allocator_Free(m_pAllocator, pSegment);
259 FX_Allocator_Free(m_pAllocator, pSegment);
263 pSpot[seg_index % m_IndexSize] = pSegment;
265 return pSegment;
288 void* CFX_BaseSegmentedArray::IterateSegment(FX_LPCBYTE pSegment, int count, FX_BOOL (*callback)(void* param, void* pData), void* param) const
291 if (!callback(param, (void*)(pSegment + i * m_UnitSize))) {
292 return (void*)(pSegment + i * m_UnitSize);