klMatrix
Data Structures | Macros | Functions
kl_memory.h File Reference
#include <iostream>
#include <map>
#include <windows.h>
#include "psapi.h"
#include <assert.h>
#include <new>
#include <crtdbg.h>
#include <string>
#include <stdio.h>
#include <malloc.h>
#include "mkl.h"
Include dependency graph for kl_memory.h:
This graph shows which files directly or indirectly include this file:

Data Structures

class  klMemMgr
 
class  klVMemBlock
 
class  klVMemMgr
 
class  klAWEMemBlock
 
class  klAWEMemMgr
 
struct  klHeader
 
struct  klFooter
 
class  klHeapMgr
 
class  klRedZoneHeapMgr
 
class  klMemError
 
class  klMKLMemMgr
 

Macros

#define KLMEM_HEAD_STRSIZE   256
 
#define KLMEM_HEAD_TIMESIZE   256
 
#define KLMEM_HEAD_GUARD_BYTES   0xABABABABABABABAB
 
#define KLMEM_FOOT_GUARD_BYTES   0xEFEFEFEFEFEFEFEF
 
#define KLMEM_MAGIC_NUMBER   0x4005bf0a8b14576a
 

Functions

SYSTEM_INFO klWinSystemInfo (ofstream &_tex)
 
MEMORYSTATUSEX klWinMemoryInfo (ofstream &_tex)
 
bool klCheckFreeMemory (size_t size)
 
void klPrintModules (ofstream &_tex)
 
char * ConvertToHex (unsigned char *Ptr, char *buffer, __int64 size)
 
void * klHeapAlloc (size_t inSize, void *theHeap)
 
bool klHeapFree (void *inPtr, void *theHeap)
 
void * klRedZoneHeapAlloc (size_t inSize, void *theHeap, const char *inFile, int inLineNum)
 
void * klRedZoneHeapAlloc (size_t inSize, void *theHeap)
 
bool klRedZoneHeapFree (void *inPtr, void *theHeap, const char *inFile, int inLineNum)
 
bool klRedZoneHeapFree (void *inPtr, void *theHeap)
 
void klCreateLowMemoryResourceNotification (void)
 
bool klQueryLowMemoryResourceNotification (int *answer)
 

Macro Definition Documentation

#define KLMEM_FOOT_GUARD_BYTES   0xEFEFEFEFEFEFEFEF
#define KLMEM_HEAD_GUARD_BYTES   0xABABABABABABABAB
#define KLMEM_HEAD_STRSIZE   256
#define KLMEM_HEAD_TIMESIZE   256
#define KLMEM_MAGIC_NUMBER   0x4005bf0a8b14576a

Function Documentation

char* ConvertToHex ( unsigned char *  Ptr,
char *  buffer,
__int64  size 
)
inline

Here is the caller graph for this function:

bool klCheckFreeMemory ( size_t  size)

Here is the caller graph for this function:

void klCreateLowMemoryResourceNotification ( void  )
void * klHeapAlloc ( size_t  inSize,
void *  theHeap 
)
inline

Here is the caller graph for this function:

bool klHeapFree ( void *  inPtr,
void *  theHeap 
)
inline

Here is the caller graph for this function:

void klPrintModules ( ofstream &  _tex)

Here is the caller graph for this function:

bool klQueryLowMemoryResourceNotification ( int *  answer)
void * klRedZoneHeapAlloc ( size_t  inSize,
void *  theHeap,
const char *  inFile,
int  inLineNum 
)
inline

Here is the caller graph for this function:

void * klRedZoneHeapAlloc ( size_t  inSize,
void *  theHeap 
)
inline
bool klRedZoneHeapFree ( void *  inPtr,
void *  theHeap,
const char *  inFile,
int  inLineNum 
)
inline

Here is the caller graph for this function:

bool klRedZoneHeapFree ( void *  inPtr,
void *  theHeap 
)
inline
MEMORYSTATUSEX klWinMemoryInfo ( ofstream &  _tex)

Here is the caller graph for this function:

SYSTEM_INFO klWinSystemInfo ( ofstream &  _tex)

Here is the caller graph for this function: