(svn r13516) -Codechange: Move MemCpyT to a fitting core header

-Codechange: Split the sorting code from the sortlist to an appropriate header
This commit is contained in:
skidd13
2008-06-14 16:23:08 +00:00
parent bf9a32b475
commit 96fc91baf3
7 changed files with 172 additions and 64 deletions

View File

@@ -6,16 +6,7 @@
#define BLOB_HPP
#include "../core/alloc_func.hpp"
/** Type-safe version of memcpy().
* @param d destination buffer
* @param s source buffer
* @param num_items number of items to be copied (!not number of bytes!) */
template <class Titem_>
FORCEINLINE void MemCpyT(Titem_* d, const Titem_* s, int num_items = 1)
{
memcpy(d, s, num_items * sizeof(Titem_));
}
#include "../core/mem_func.hpp"
/** Base class for simple binary blobs.
* Item is byte.