00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __DEVMEMPATT_C
00009 #define __DEVMEMPATT_C
00010
00011 #define READ_BUFF_SIZE 4096
00012
00013 #include <string>
00014 #include <rwKernel.hpp>
00015 #include <SymbolFingp.hpp>
00016
00017
00025 class DevMemPatt
00026 {
00027 private:
00028 rwKernel *rw;
00029 int compare_data_snippet (unsigned char *, struct sfp *);
00030
00031 public:
00036 DevMemPatt (rwKernel *);
00037
00041 DevMemPatt ();
00042
00046 ~DevMemPatt ();
00047
00057 unsigned int find_patt (unsigned int start, unsigned int end, \
00058 unsigned short len, unsigned char *data);
00059
00067 unsigned int find_patt (struct sfp *a);
00068 };
00069 #endif