#include <cstring>
Go to the source code of this file.
Macros | |
#define | CHECKALLOC(x) |
#define | DELETEARRAY(x) |
Deletes an array. More... | |
#define | DELETESINGLE(x) |
Deletes an instance of a class. More... | |
#define | SAFE_ALLOC(ptr, type, count) |
Standard allocation cycle. More... | |
#define | SAFE_DESTRUCT(x) |
Safe ICE-style release. More... | |
#define | SAFE_RELEASE(x) |
Safe D3D-style release. More... | |
#define | SIZEOFOBJECT sizeof(*this) |
Gives the size of current object. Avoid some mistakes (e.g. "sizeof(this)"). More... | |
Functions | |
void | CopyMemory (void *dest, const void *src, udword size) |
void | FillMemory (void *dest, udword size, ubyte val) |
void | MoveMemory (void *dest, const void *src, udword size) |
void | ZeroMemory (void *addr, udword size) |
#define CHECKALLOC | ( | x | ) |
Definition at line 128 of file IceMemoryMacros.h.
Referenced by RadixSort::Resize().
#define DELETEARRAY | ( | x | ) |
Deletes an array.
Definition at line 95 of file IceMemoryMacros.h.
Referenced by RadixSort::RelinquishRanks(), RadixSort::Resize(), and RadixSort::~RadixSort().
#define DELETESINGLE | ( | x | ) |
Deletes an instance of a class.
Definition at line 86 of file IceMemoryMacros.h.
#define SAFE_ALLOC | ( | ptr, | |
type, | |||
count | |||
) |
Standard allocation cycle.
Definition at line 134 of file IceMemoryMacros.h.
#define SAFE_DESTRUCT | ( | x | ) |
Safe ICE-style release.
Definition at line 113 of file IceMemoryMacros.h.
#define SAFE_RELEASE | ( | x | ) |
Safe D3D-style release.
Definition at line 104 of file IceMemoryMacros.h.
#define SIZEOFOBJECT sizeof(*this) |
Gives the size of current object. Avoid some mistakes (e.g. "sizeof(this)").
Definition at line 84 of file IceMemoryMacros.h.
|
inline |
Copies a buffer.
addr | [in] destination buffer address |
addr | [in] source buffer address |
size | [in] buffer length |
Definition at line 72 of file IceMemoryMacros.h.
Fills a buffer with a given byte.
addr | [in] buffer address |
size | [in] buffer length |
val | [in] the byte value |
Definition at line 39 of file IceMemoryMacros.h.
|
inline |
Moves a buffer.
addr | [in] destination buffer address |
addr | [in] source buffer address |
size | [in] buffer length |
Definition at line 82 of file IceMemoryMacros.h.
|
inline |
Clears a buffer.
addr | [in] buffer address |
size | [in] buffer length |
Definition at line 29 of file IceMemoryMacros.h.