23 inline void MemCpyT(T *destination,
const T *source,
size_t num = 1)
25 memcpy(destination, source, num *
sizeof(T));
36 inline void MemMoveT(T *destination,
const T *source,
size_t num = 1)
38 memmove(destination, source, num *
sizeof(T));
49 inline void MemSetT(T *ptr, uint8_t value,
size_t num = 1)
51 memset(ptr, value, num *
sizeof(T));
63 inline int MemCmpT(
const T *ptr1,
const T *ptr2,
size_t num = 1)
65 return memcmp(ptr1, ptr2, num *
sizeof(T));
void MemCpyT(T *destination, const T *source, size_t num=1)
Type-safe version of memcpy().
void MemMoveT(T *destination, const T *source, size_t num=1)
Type-safe version of memmove().
int MemCmpT(const T *ptr1, const T *ptr2, size_t num=1)
Type-safe version of memcmp().
void MemSetT(T *ptr, uint8_t value, size_t num=1)
Type-safe version of memset().