Still cannot know why it does not work
[PathExplorer.git] / src / utilities / utils.h
blobd15e504922f8af10b01b69b95d239b445a67be0f
1 /*
2 * Copyright (C) 2013 Ta Thanh Dinh <email>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #ifndef UTILS_H
21 #define UTILS_H
23 #include <pin.H>
24 #include <string>
26 namespace utilities
29 class utils
31 public:
32 static UINT8 random_uint8();
33 static std::string remove_leading_zeros(std::string input);
34 static std::string addrint2hexstring(ADDRINT input);
35 static bool is_in_input_buffer(ADDRINT memory_address);
38 } // end of utilities namespace
40 #endif // UTILS_H