【文件属性】:
文件名称:C++ - Tracebin Utility - A binary tracer
文件大小:20KB
文件格式:TAR
更新时间:2016-02-23 15:54:52
tracebin
#ifndef _WX_TRACEBIN_H
#define _WX_TRACEBIN_H
#include
namespace wx {
class BinaryTracer
{
private:
static const unsigned int step = 16;
private:
static char viewChar (const char ch);
static std::string viewHead (int i);
static std::string viewHexes (const std::string &str;);
static std::string viewChars (const std::string &str;);
public:
////////////////////////////////////////////////////////////////////////////////
// 0 1 2 3 4 5 6 7
// 01234567890123456789012345678901234567890123456789012345678901234567890123456
// -----------------------------------------------------------------------------
// 0x000000 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 abcdefghijklmnop
// 0x000010 71 72 73 74 75 76 77 78 79 7A 30 31 32 33 34 35 qrstuvwxyz012345
// 0x000020 36 37 38 39 6789
////////////////////////////////////////////////////////////////////////////////
static void tracebin (const std::string &str;, std::string &hex;);
// [in] filename string, file name.
// [out] hex string, append to hex.
static void tracebin_f (const std::string filename, std::string &hex;);
};
};
#endif