Defines |
|
#define | SIZEOFOBJECT sizeof(*this) |
| | Gives the size of current object. Avoid some mistakes (e.g. "sizeof(this)").
|
|
#define | DELETESINGLE(x) if (x) { delete x; x = null; } |
| | Deletes an instance of a class.
|
|
#define | DELETEARRAY(x) if (x) { delete []x; x = null; } |
| | Deletes an array.
|
|
#define | SAFE_RELEASE(x) if (x) { (x)->Release(); (x) = null; } |
| | Safe D3D-style release.
|
|
#define | SAFE_DESTRUCT(x) if (x) { (x)->SelfDestruct(); (x) = null; } |
| | Safe ICE-style release.
|
|
#define | CHECKALLOC(x) if(!x) return SetIceError("Out of memory.", EC_OUTOFMEMORY); |
| | Standard alloc checking. HANDLE WITH CARE.
|
Functions |
|
ICECORE_API __forceinline void | ZeroMemory (void *addr, udword size) |
| | A function to clear a buffer. -
Parameters:
-
| addr |
buffer address |
| size |
buffer length |
-
See also:
-
FillMemory , CopyMemory , MoveMemory.
|
|
ICECORE_API __forceinline void | FillMemory (void *dest, udword size, ubyte val) |
| | A function to fill a buffer with a given byte. -
Parameters:
-
| addr |
buffer address |
| size |
buffer length |
| val |
the byte value |
-
See also:
-
ZeroMemory , CopyMemory , MoveMemory.
|
|
ICECORE_API __forceinline void | CopyMemory (void *dest, const void *src, udword size) |
| | A function to copy a buffer. -
Parameters:
-
| addr |
destination buffer address |
| addr |
source buffer address |
| size |
buffer length |
-
See also:
-
ZeroMemory , FillMemory , MoveMemory.
|
|
ICECORE_API __forceinline void | MoveMemory (void *dest, const void *src, udword size) |
| | A function to move a buffer. -
Parameters:
-
| addr |
destination buffer address |
| addr |
source buffer address |
| size |
buffer length |
-
See also:
-
ZeroMemory , FillMemory , CopyMemory.
|