00001 #ifndef __COMBUF_H 00002 #define __COMBUF_H 00003 00005 class CommonBuf { 00006 public: 00007 //------ Define common data buffer size ------// 00008 enum { // keep a 256K common buffer for all temporary memory storage like reading files temporarily into memory 00009 COMMON_DATA_BUF_SIZE = 256*1024 00010 }; 00011 00012 public: 00013 char* common_data_buf; 00014 00015 public: 00016 CommonBuf(); 00017 ~CommonBuf(); 00018 }; 00019 00020 extern CommonBuf common_buf; 00021 #endif