#include <string.h>
#include "math_func.hpp"
Go to the source code of this file.
Functions | |
| template<typename T> | |
| static FORCEINLINE void | MemCpyT (T *destination, const T *source, uint num=1) |
| Type-safe version of memcpy(). | |
| template<typename T> | |
| static FORCEINLINE void | MemMoveT (T *destination, const T *source, uint num=1) |
| Type-safe version of memmove(). | |
| template<typename T> | |
| static FORCEINLINE void | MemSetT (T *ptr, byte value, uint num=1) |
| Type-safe version of memset(). | |
| template<typename T> | |
| static FORCEINLINE int | MemCmpT (const T *ptr1, const T *ptr2, uint num=1) |
| Type-safe version of memcmp(). | |
| template<typename T> | |
| static FORCEINLINE void | MemReverseT (T *ptr1, T *ptr2) |
| Type safe memory reverse operation. | |
| template<typename T> | |
| static FORCEINLINE void | MemReverseT (T *ptr, uint num) |
| Type safe memory reverse operation (overloaded). | |
Definition in file mem_func.hpp.
| static FORCEINLINE int MemCmpT | ( | const T * | ptr1, | |
| const T * | ptr2, | |||
| uint | num = 1 | |||
| ) | [inline, static] |
Type-safe version of memcmp().
| ptr1 | Pointer to the first buffer | |
| ptr2 | Pointer to the second buffer | |
| num | Number of items to compare. (!not number of bytes!) |
Definition at line 59 of file mem_func.hpp.
| static FORCEINLINE void MemCpyT | ( | T * | destination, | |
| const T * | source, | |||
| uint | num = 1 | |||
| ) | [inline, static] |
Type-safe version of memcpy().
| destination | Pointer to the destination buffer | |
| source | Pointer to the source buffer | |
| num | number of items to be copied. (!not number of bytes!) |
Definition at line 19 of file mem_func.hpp.
| static FORCEINLINE void MemMoveT | ( | T * | destination, | |
| const T * | source, | |||
| uint | num = 1 | |||
| ) | [inline, static] |
Type-safe version of memmove().
| destination | Pointer to the destination buffer | |
| source | Pointer to the source buffer | |
| num | number of items to be copied. (!not number of bytes!) |
Definition at line 32 of file mem_func.hpp.
| static FORCEINLINE void MemReverseT | ( | T * | ptr, | |
| uint | num | |||
| ) | [inline, static] |
Type safe memory reverse operation (overloaded).
| ptr | Pointer to the block of memory. | |
| num | The number of items we want to reverse. |
Definition at line 90 of file mem_func.hpp.
References MemReverseT().
| static FORCEINLINE void MemReverseT | ( | T * | ptr1, | |
| T * | ptr2 | |||
| ) | [inline, static] |
Type safe memory reverse operation.
Reverse a block of memory in steps given by the type of the pointers.
| ptr1 | Start-pointer to the block of memory. | |
| ptr2 | End-pointer to the block of memory. |
Definition at line 73 of file mem_func.hpp.
References Swap().
Referenced by MemReverseT(), and QSortT().
| static FORCEINLINE void MemSetT | ( | T * | ptr, | |
| byte | value, | |||
| uint | num = 1 | |||
| ) | [inline, static] |
Type-safe version of memset().
| ptr | Pointer to the destination buffer | |
| value | Value to be set | |
| num | number of items to be set (!not number of bytes!) |
Definition at line 45 of file mem_func.hpp.
Referenced by IniFile::SaveToDisk().
1.5.6