version 1.12, 2002/05/17 22:33:30
|
version 1.13, 2002/05/28 22:13:52
|
|
|
#include <Pegasus/Common/CIMType.h> | #include <Pegasus/Common/CIMType.h> |
#include <Pegasus/Common/Char16.h> | #include <Pegasus/Common/Char16.h> |
| |
|
|
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
template<class T> | template<class T> |
|
|
items++->~T(); | items++->~T(); |
} | } |
| |
template<class T, class U> |
template<class T> |
inline void CopyToRaw(T* to, const U* from, Uint32 size) |
inline void CopyToRaw(T* to, const T* from, Uint32 size) |
{ | { |
while (size--) | while (size--) |
{ | { |
|
|
| |
#define PEGASUS_MEMORY_FUNCTIONS(T) \ | #define PEGASUS_MEMORY_FUNCTIONS(T) \ |
inline void Destroy(T*, Uint32) { } \ | inline void Destroy(T*, Uint32) { } \ |
inline void Destroy(T*) { } \ |
|
inline void InitializeRaw(T* items, Uint32 size) { Zeros(items, size); } | inline void InitializeRaw(T* items, Uint32 size) { Zeros(items, size); } |
| |
PEGASUS_MEMORY_FUNCTIONS(char*) | PEGASUS_MEMORY_FUNCTIONS(char*) |