Shadowrun: Awakened 29 September 2011 - Build 871
Namespaces | Functions | Variables
RakMemoryOverride.h File Reference

If _USE_RAK_MEMORY_OVERRIDE is defined, memory allocations go through rakMalloc, rakRealloc, and rakFree. More...

#include "Export.h"
#include "RakNetDefines.h"
#include <new>
#include "RakAlloca.h"
Include dependency graph for RakMemoryOverride.h:

Go to the source code of this file.

Namespaces

namespace  RakNet
 

Simple class to send changes between directories. In essence, a simple autopatcher that can be used for transmitting levels, skins, etc.


Functions

void * RakNet::_DLMallocDirectMMap (size_t size)
void * RakNet::_DLMallocMMap (size_t size)
int RakNet::_DLMallocMUnmap (void *p, size_t size)
void RakNet::_RakFree (void *p)
void RakNet::_RakFree_Ex (void *p, const char *file, unsigned int line)
void * RakNet::_RakMalloc (size_t size)
void * RakNet::_RakMalloc_Ex (size_t size, const char *file, unsigned int line)
void * RakNet::_RakRealloc (void *p, size_t size)
void * RakNet::_RakRealloc_Ex (void *p, size_t size, const char *file, unsigned int line)
void FreeRakNetFixedHeap (void)
template<class Type >
void RakNet::OP_DELETE (Type *buff, const char *file, unsigned int line)
template<class Type >
void RakNet::OP_DELETE_ARRAY (Type *buff, const char *file, unsigned int line)
template<class Type >
Type * RakNet::OP_NEW (const char *file, unsigned int line)
template<class Type , class P1 >
Type * RakNet::OP_NEW_1 (const char *file, unsigned int line, const P1 &p1)
template<class Type , class P1 , class P2 >
Type * RakNet::OP_NEW_2 (const char *file, unsigned int line, const P1 &p1, const P2 &p2)
template<class Type , class P1 , class P2 , class P3 >
Type * RakNet::OP_NEW_3 (const char *file, unsigned int line, const P1 &p1, const P2 &p2, const P3 &p3)
template<class Type , class P1 , class P2 , class P3 , class P4 >
Type * RakNet::OP_NEW_4 (const char *file, unsigned int line, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4)
template<class Type >
Type * RakNet::OP_NEW_ARRAY (const int count, const char *file, unsigned int line)
void SetDLMallocDirectMMap (void *(*userFunction)(size_t size))
void SetDLMallocMMap (void *(*userFunction)(size_t size))
void SetDLMallocMUnmap (int(*userFunction)(void *ptr, size_t size))
void SetFree (void(*userFunction)(void *p))
void SetFree_Ex (void(*userFunction)(void *p, const char *file, unsigned int line))
void SetMalloc (void *(*userFunction)(size_t size))
void SetMalloc_Ex (void *(*userFunction)(size_t size, const char *file, unsigned int line))
void SetNotifyOutOfMemory (void(*userFunction)(const char *file, const long line))
void SetRealloc (void *(*userFunction)(void *p, size_t size))
void SetRealloc_Ex (void *(*userFunction)(void *p, size_t size, const char *file, unsigned int line))
void UseRaknetFixedHeap (size_t initialCapacity, void *(*yourMMapFunction)(size_t size)=RakNet::_DLMallocMMap, void *(*yourDirectMMapFunction)(size_t size)=RakNet::_DLMallocDirectMMap, int(*yourMUnmapFunction)(void *p, size_t size)=RakNet::_DLMallocMUnmap)

Variables

void *(* dlMallocDirectMMap )(size_t size)
void *(* dlMallocMMap )(size_t size)
int(* dlMallocMUnmap )(void *ptr, size_t size)
void *(*)(size_t size) GetDLMallocDirectMMap ()
void *(*)(size_t size) GetDLMallocMMap ()
int(*)(void *ptr, size_t size) GetDLMallocMUnmap ()
void(*)(void *p) GetFree ()
void(*)(void *p, const char
*file, unsigned int line) 
GetFree_Ex ()
void *(*)(size_t size) GetMalloc ()
void *(*)(size_t size, const
char *file, unsigned int line) 
GetMalloc_Ex ()
void *(*)(void *p, size_t size) GetRealloc ()
void *(*)(void *p, size_t size,
const char *file, unsigned int
line) 
GetRealloc_Ex ()
void(* notifyOutOfMemory )(const char *file, const long line)
void(* rakFree )(void *p)
void(* rakFree_Ex )(void *p, const char *file, unsigned int line)
void *(* rakMalloc )(size_t size)
void *(* rakMalloc_Ex )(size_t size, const char *file, unsigned int line)
void *(* rakRealloc )(void *p, size_t size)
void *(* rakRealloc_Ex )(void *p, size_t size, const char *file, unsigned int line)

Detailed Description

This file is part of RakNet Copyright 2003 Jenkins Software LLC

Usage of RakNet is subject to the appropriate license agreement.

Definition in file RakMemoryOverride.h.


Function Documentation

void FreeRakNetFixedHeap ( void  )
void SetDLMallocDirectMMap ( void *(*)(size_t size)  userFunction)
void SetDLMallocMMap ( void *(*)(size_t size)  userFunction)
void SetDLMallocMUnmap ( int(*)(void *ptr, size_t size)  userFunction)
void SetFree ( void(*)(void *p)  userFunction)
void SetFree_Ex ( void(*)(void *p, const char *file, unsigned int line)  userFunction)
void SetMalloc ( void *(*)(size_t size)  userFunction)
void SetMalloc_Ex ( void *(*)(size_t size, const char *file, unsigned int line)  userFunction)
void SetNotifyOutOfMemory ( void(*)(const char *file, const long line)  userFunction)
void SetRealloc ( void *(*)(void *p, size_t size)  userFunction)
void SetRealloc_Ex ( void *(*)(void *p, size_t size, const char *file, unsigned int line)  userFunction)
void UseRaknetFixedHeap ( size_t  initialCapacity,
void *(*)(size_t size)  yourMMapFunction = RakNet::_DLMallocMMap,
void *(*)(size_t size)  yourDirectMMapFunction = RakNet::_DLMallocDirectMMap,
int(*)(void *p, size_t size)  yourMUnmapFunction = RakNet::_DLMallocMUnmap 
)

Variable Documentation

void*(* dlMallocDirectMMap)(size_t size)
void*(* dlMallocMMap)(size_t size)
int(* dlMallocMUnmap)(void *ptr, size_t size)
void*(*)(size_t size) GetDLMallocDirectMMap()
void*(*)(size_t size) GetDLMallocMMap()
int(*)(void* ptr, size_t size) GetDLMallocMUnmap()
void(*)(void *p) GetFree()
void(*)(void *p, const char *file, unsigned int line) GetFree_Ex()
void*(*)(size_t size) GetMalloc()
void*(*)(size_t size, const char *file, unsigned int line) GetMalloc_Ex()
void*(*)(void *p, size_t size) GetRealloc()
void*(*)(void *p, size_t size, const char *file, unsigned int line) GetRealloc_Ex()
void(* notifyOutOfMemory)(const char *file, const long line)
void(* rakFree)(void *p)
void(* rakFree_Ex)(void *p, const char *file, unsigned int line)
void*(* rakMalloc)(size_t size)
void*(* rakMalloc_Ex)(size_t size, const char *file, unsigned int line)
void*(* rakRealloc)(void *p, size_t size)
void*(* rakRealloc_Ex)(void *p, size_t size, const char *file, unsigned int line)

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net