CFx SDK Documentation  2022 SP0
Functions
OdAlloc.h File Reference
#include "OdAllocExport.h"

Go to the source code of this file.

Functions

ALLOCDLL_EXPORT voidodrxAlloc (size_t nBytes)
 
ALLOCDLL_EXPORT voidodrxRealloc (void *pMemBlock, size_t newSize, size_t oldSize)
 
ALLOCDLL_EXPORT void odrxFree (void *pMemBlock)
 
ALLOCDLL_EXPORT OdUInt64 GetMemoryUsageInternalInfo (OdUInt32 target)
 

Function Documentation

◆ GetMemoryUsageInternalInfo()

ALLOCDLL_EXPORT OdUInt64 GetMemoryUsageInternalInfo ( OdUInt32  target)

For internal use only.

◆ odrxAlloc()

ALLOCDLL_EXPORT void* odrxAlloc ( size_t  nBytes)

Defines the interface for Teigha memory management.

Allocates a block of memory.

Parameters
nBytes[in] Number of bytes to allocate.
Returns
Returns a pointer to the newly allocated memory block.
See also
Memory Management

◆ odrxFree()

ALLOCDLL_EXPORT void odrxFree ( void pMemBlock)

Frees a block of memory.

Parameters
pMemBlock[in] Pointer to the previously allocated memory block.
See also
Memory Management

◆ odrxRealloc()

ALLOCDLL_EXPORT void* odrxRealloc ( void pMemBlock,
size_t  newSize,
size_t  oldSize 
)

Reallocates a block of memory.

Parameters
pMemBlock[in] Pointer to the previously allocated memory block.
newSize[in] New size in bytes.
oldSize[in] Old size in bytes.
Returns
Returns a pointer to the newly allocated memory block.
See also
Memory Management