Bitstream Interpretation Library (BIL)  0.1
HexPrint.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 #ifndef BIL_HEXPRINT_HPP
8 #define BIL_HEXPRINT_HPP
9 
10 #include <cstring>
11 #include <ostream>
12 #include <string>
13 #include <boost/cstdint.hpp>
14 
15 
16 namespace bil {
17 
25  void printHex(std::ostream& os, boost::uint32_t word);
26 
35  void printHex(std::ostream& os, const boost::uint32_t* words, size_t wordCount);
36 
37 
45  std::string hexString(boost::uint32_t word);
46 
55  std::string hexString(const boost::uint32_t* words, size_t wordCount);
56 
57 }
58 
59 #endif