1 #ifndef GBXSERIALDEVICEACFR_PRINTUTIL_H
2 #define GBXSERIALDEVICEACFR_PRINTUTIL_H
7 namespace gbxserialdeviceacfr {
14 std::string toHexString(
const char *buf,
int bufLen );
15 inline std::string toHexString(
const std::vector<char> &buf )
16 {
return toHexString( &(buf[0]), buf.size() );}
17 inline std::string toHexString(
const std::string &buf )
18 {
return toHexString( &(buf[0]), buf.size() );}
21 std::string toAsciiString(
const char *buf,
int bufLen );
22 inline std::string toAsciiString(
const std::vector<char> &buf )
23 {
return toAsciiString( &(buf[0]), buf.size() );}