Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
hxsym_memutil.h
Package: 142_61_thumb_advanced.rar [view]
Upload User: dangjiwu
Upload Date: 2013-07-19
Package Size: 42019k
Code Size: 1k
Category:
Symbian
Development Platform:
Visual C++
- /************************************************************************
- * hxsym_memutil.h.
- * -------------
- *
- * Synopsis:
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- #ifndef hxsym_memutil_h
- #define hxsym_memutil_h
- #include <e32std.h>
- #include <e32hal.h>
- #include <eikenv.h>
- namespace MemUtil
- {
- /*void TraceHeap(int mask, const char* pMsg = 0);
- TInt GetSystemFree();
- TInt GetHeapUsed();
- TInt GetHeapFree();
- TInt GetHeapSize();
- TInt GetHeapCellsAllocated();
- TInt GetHeapLargestBlockAvail();*/
- inline
- TInt GetSystemFree()
- {
- TMemoryInfoV1Buf info;
- UserHal::MemoryInfo(info);
- return info().iFreeRamInBytes;
- }
- inline
- TInt GetHeapUsed()
- {
- TInt cbLargestBlock;
- RHeap heap = User::Heap();
- return (heap.Size() - heap.Available(cbLargestBlock));
- }
- inline
- TInt GetHeapLargestBlockAvail()
- {
- TInt cbLargestBlock(0);
- RHeap heap = User::Heap();
- heap.Available(cbLargestBlock);
- return cbLargestBlock;
- }
- inline
- TInt GetHeapFree()
- {
- TInt size;
- RHeap heap = User::Heap();
- return heap.Available(size);
- }
- inline
- TInt GetHeapSize()
- {
- RHeap heap = User::Heap();
- return heap.Size();
- }
- inline
- TInt GetHeapCellsAllocated()
- {
- RHeap heap = User::Heap();
- return heap.Count();
- }
- } // ns MemUtil
- #endif //hxsym_memutil_h