diff options
author | skidd13 <skidd13@openttd.org> | 2008-06-14 16:23:08 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-06-14 16:23:08 +0000 |
commit | a8bb6177ee89a25e570963a6344bf605cc051469 (patch) | |
tree | d5b906fe92067ad24f299aa231dd338520d277f1 /src/misc/blob.hpp | |
parent | e044910d52430d6bb4cee48004369835d136396f (diff) | |
download | openttd-a8bb6177ee89a25e570963a6344bf605cc051469.tar.xz |
(svn r13516) -Codechange: Move MemCpyT to a fitting core header
-Codechange: Split the sorting code from the sortlist to an appropriate header
Diffstat (limited to 'src/misc/blob.hpp')
-rw-r--r-- | src/misc/blob.hpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/misc/blob.hpp b/src/misc/blob.hpp index c96902997..12f7e54ff 100644 --- a/src/misc/blob.hpp +++ b/src/misc/blob.hpp @@ -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. |