chxavmemutil.h
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:1k
- /************************************************************************
- * chxavactivecompletiondispatch.h
- * -------------------------------
- *
- * Synopsis:
- *
- * Memory routines.
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- #ifndef _chxavmemutil_h_
- #define _chxavmemutil_h_
- // Includes...
- #include <e32std.h>
- class CHXAvMemUtil {
- public:
- static void* MemCopy(void* dest, const void* src, int nbytes);
- static void* MemMove(void* dest, const void* src, int nbytes);
- static void* MemSet(void* dest, int c, int nbytes);
- static int MemCmp(const void* dest, const void* src, int nbytes);
- };
- inline
- void* CHXAvMemUtil::MemCopy(void* dest, const void* src, int nbytes)
- {
- return Mem::Copy(dest, src, nbytes);
- }
- inline
- void* CHXAvMemUtil::MemMove(void* dest, const void* src, int nbytes)
- {
- return Mem::Copy(dest, src, nbytes);
- }
- inline
- void* CHXAvMemUtil::MemSet(void* dest, int c, int nbytes)
- {
- Mem::Fill(dest, nbytes, TChar(c));
- return dest;
- }
- inline
- int CHXAvMemUtil::MemCmp(const void* dest, const void* src, int nbytes)
- {
- return Mem::Compare((const TUint8*)dest, nbytes,
- (const TUint8*)src, nbytes);
- }
- #endif // _chxavmemutil_h_