kmemory.h File Reference


Detailed Description

Definition in file kmemory.h.

#include <fbxfilesdk/components/kbaselib/kbaselib_h.h>
#include <string.h>
#include <stdlib.h>
#include <fbxfilesdk/fbxfilesdk_nsbegin.h>
#include <fbxfilesdk/fbxfilesdk_nsend.h>

Include dependency graph for kmemory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Classes

class   KMemoryUsageCounter
  Simple Memory Usage Counter. More...
class   KMemoryAllocator
  Simple Memory allocator. More...
class   KMemoryReusePool
  A pool of memory blocks of arbitrary size. More...
class   KMemoryPool
  class KMemory pool More...

Defines

#define  kMalloc(pSize)   malloc( pSize )
  Allocation routines Standard allocation.
#define  _NORMAL_BLOCK   1
  Allocation routines debug Standard allocation.

Functions

KFBX_DLL void *  kMallocAligned (kSizeT pSize, kUInt pAlignement=KMEMORY_DEFAULTALIGNEMENT)
  Aligned memory allocation.
KFBX_DLL void *  kReallocAligned (void *pAlignedPtr, kSizeT pSize, kUInt pAlignement=KMEMORY_DEFAULTALIGNEMENT)
  Aligned memory reallocation.
KFBX_DLL void  kFreeAligned (void *pAlignedPtr)
  Aligned memory deallocation.

Define Documentation

#define _NORMAL_BLOCK   1

Allocation routines debug Standard allocation.

Definition at line 89 of file kmemory.h.

#define kMalloc ( pSize   )     malloc( pSize )

Allocation routines Standard allocation.

Definition at line 59 of file kmemory.h.


Function Documentation

KFBX_DLL void kFreeAligned ( void *  pAlignedPtr  ) 

Aligned memory deallocation.

Parameters:
pAlignedPtr 
Returns:
KFBX_DLL void

KFBX_DLL void* kMallocAligned ( kSizeT  pSize,
kUInt  pAlignement = KMEMORY_DEFAULTALIGNEMENT  
)

Aligned memory allocation.

Parameters:
pSize  Memory block size.
pAlignement  Alignment window or width.
Returns:
the allocated memory block. (Used to free the block).

KFBX_DLL void* kReallocAligned ( void *  pAlignedPtr,
kSizeT  pSize,
kUInt  pAlignement = KMEMORY_DEFAULTALIGNEMENT  
)

Aligned memory reallocation.

Parameters:
pAlignedPtr  Previously aligned block
pSize  Memory block size.
pAlignement  Alignment window or width.
Returns:
the reallocated memory block. (Used to free the block).