Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

void SAPDBMem_RawAllocator::SetAllocator ( void *  p,
SAPDBMem_IRawAllocator pAllocator 
) [static, inherited]

stores a pointer to an allocator into a memory chunk. The memory chunk must have been provided by a call of SAPDBMem_RawAllocator::Allocate.

Parameters:
p [in] pointer to the memory chunk
pAllocator [in] pointer to an allocator
Returns:
none

Definition at line 2583 of file SAPDBMem_RawAllocator.cpp.

References SAPDBMem_RawAllocator::CChunk::prev.

{
   CChunk* pChunk = SAPDBMem_RawAllocator::CChunk::Mem2Chunk(p);
   pChunk->prev = REINTERPRET_CAST(CChunkPtr, pAllocator);    
}


Generated by  Doxygen 1.6.0   Back to index