Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_Heap.cpp File Reference


Functions

CP_S_MemoryBlockGetBlock (void *inPtr)
const CP_S_MemoryBlockGetBlock (const void *inPtr)

Variables

CPLAT_Begin_Namespace_CPLAT
const SInt32 
kCP_HeaderLength
const SInt32 kCP_TrailerLength = 4
const SInt32 kCP_RecordingOverhead = 0
const UInt32 kCP_MarkerOne = 0xF0F0F0F0
const UInt32 kCP_MarkerTwo = 0xF1F1F1F1
const unsigned char kCP_MarkerThree = 0xF2
const unsigned char kCP_AllocatedBlockGarbage = 0xA3
const unsigned char kCP_DeallocatedBlockGarbage = 0xF3

Function Documentation

CP_S_MemoryBlock* GetBlock void *  inPtr  ) 
 

Returns the CP_S_MemoryBlock structure which is located at the beginning of every memory allocated by the CP_Heap when memory recording is on.

Parameters:
inPtr Pointer to the memory block we want to retrieve the CP_S_memoryBlock structure from.
Exceptions:
none 
Returns:
CP_S_MemoryBlock * The CP_S_MemoryBlock structure that describes the allocated memory for the passed in address.

const CP_S_MemoryBlock* GetBlock const void *  inPtr  ) 
 

Returns the CP_S_MemoryBlock structure which is located at the beginning of every memory allocated by the CP_Heap when memory recording is on. const version.

Parameters:
inPtr Pointer to the memory block we want to retrieve the CP_S_memoryBlock structure from.
Exceptions:
none 
Returns:
CP_S_MemoryBlock * The CP_S_MemoryBlock structure that describes the allocated memory for the passed in address.


Variable Documentation

CPLAT_Begin_Namespace_CPLAT const SInt32 kCP_HeaderLength
 

Initial value:

 sizeof(unsigned) + sizeof(UInt32) +
                                                                (sizeof(CP_S_MemoryBlock *) * 2) + (sizeof(SInt16) * 3) + (sizeof(char *) * 2)

const SInt32 kCP_TrailerLength = 4
 

const SInt32 kCP_RecordingOverhead = 0
 

const UInt32 kCP_MarkerOne = 0xF0F0F0F0
 

const UInt32 kCP_MarkerTwo = 0xF1F1F1F1
 

const unsigned char kCP_MarkerThree = 0xF2
 

const unsigned char kCP_AllocatedBlockGarbage = 0xA3
 

const unsigned char kCP_DeallocatedBlockGarbage = 0xF3
 


Generated on Sat Sep 17 20:01:15 2005 for CPLAT by  doxygen 1.4.0