Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Macros
Pages
verifierutils
verifierutils.hpp
Go to the documentation of this file.
1
9
#ifndef _UTILS_H_
10
#define _UTILS_H_
11
12
#include <cstdint>
13
14
// The files we are actually interested in.
15
#include "
bytetree/bytetree.hpp
"
16
#include "
bytetree/leaf.hpp
"
17
#include "
bytetree/node.hpp
"
18
30
namespace
verifierUtils
31
{
41
std::string
num2str
(
unsigned
int
number);
42
50
std::string
byte2str
(uint8_t b);
51
65
uint8_t
doublon2byte
(
char
b1,
char
b2);
66
76
uint32_t
octuple2num
(std::string s);
77
87
std::vector<uint8_t>
largeNum2byteVector
(mpz_class number);
88
96
std::vector<uint8_t>
file2bytes
(std::string path);
97
}
98
99
#endif