Codechange: remove uses of MemCmpT (and MemMoveT)
This commit is contained in:
@@ -25,19 +25,6 @@ inline void MemCpyT(T *destination, const T *source, size_t num = 1)
|
||||
memcpy(destination, source, num * sizeof(T));
|
||||
}
|
||||
|
||||
/**
|
||||
* Type-safe version of memmove().
|
||||
*
|
||||
* @param destination Pointer to the destination buffer
|
||||
* @param source Pointer to the source buffer
|
||||
* @param num number of items to be copied. (!not number of bytes!)
|
||||
*/
|
||||
template <typename T>
|
||||
inline void MemMoveT(T *destination, const T *source, size_t num = 1)
|
||||
{
|
||||
memmove(destination, source, num * sizeof(T));
|
||||
}
|
||||
|
||||
/**
|
||||
* Type-safe version of memset().
|
||||
*
|
||||
@@ -51,18 +38,4 @@ inline void MemSetT(T *ptr, uint8_t value, size_t num = 1)
|
||||
memset(ptr, value, num * sizeof(T));
|
||||
}
|
||||
|
||||
/**
|
||||
* Type-safe version of memcmp().
|
||||
*
|
||||
* @param ptr1 Pointer to the first buffer
|
||||
* @param ptr2 Pointer to the second buffer
|
||||
* @param num Number of items to compare. (!not number of bytes!)
|
||||
* @return an int value indicating the relationship between the content of the two buffers
|
||||
*/
|
||||
template <typename T>
|
||||
inline int MemCmpT(const T *ptr1, const T *ptr2, size_t num = 1)
|
||||
{
|
||||
return memcmp(ptr1, ptr2, num * sizeof(T));
|
||||
}
|
||||
|
||||
#endif /* MEM_FUNC_HPP */
|
||||
|
||||
Reference in New Issue
Block a user