2018-04-07 07:57:33 +00:00
|
|
|
#pragma once
|
2018-08-14 07:23:02 +00:00
|
|
|
#include <string>
|
2018-04-07 07:57:33 +00:00
|
|
|
#include <fnd/types.h>
|
2018-08-20 11:25:10 +00:00
|
|
|
#include <fnd/Vec.h>
|
2018-04-07 07:57:33 +00:00
|
|
|
|
|
|
|
namespace fnd
|
|
|
|
{
|
|
|
|
class SimpleTextOutput
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void hxdStyleDump(const byte_t* data, size_t len, size_t row_len, size_t byte_grouping_size);
|
|
|
|
static void hxdStyleDump(const byte_t* data, size_t len);
|
|
|
|
static void hexDump(const byte_t* data, size_t len, size_t row_len, size_t indent_len);
|
|
|
|
static void hexDump(const byte_t* data, size_t len);
|
2018-08-14 07:23:02 +00:00
|
|
|
static std::string arrayToString(const byte_t* data, size_t len, bool upper_case, const std::string& separator);
|
2018-08-20 11:25:10 +00:00
|
|
|
static void stringToArray(const std::string& str, fnd::Vec<byte_t>& array);
|
|
|
|
|
2018-04-07 07:57:33 +00:00
|
|
|
private:
|
|
|
|
static const size_t kDefaultRowLen = 0x10;
|
|
|
|
static const size_t kDefaultByteGroupingSize = 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|