00001 #ifndef MNT_DATA_H 00002 #define MNT_DATA_H 00003 00004 #include "mnt_core.h" 00005 00013 class MntData { 00014 public: 00015 unsigned char *data_; 00016 unsigned int size_; 00017 unsigned int length_; 00022 MntData() 00023 { 00024 } 00025 00033 MntData(unsigned char *data, int size) 00034 { 00035 data_ = data; 00036 size_ = size; 00037 length_ = 0; 00038 } 00039 00044 int is_valid_pointer(unsigned char *ptr) 00045 { 00046 return (ptr >= data_ && ptr <= data_ + size_); 00047 } 00048 }; 00049 00050 #endif