11#ifndef SQUID_SRC_BASE_RAW_H
12#define SQUID_SRC_BASE_RAW_H
23 Raw(
const char *label,
const char *data,
const size_t size):
40 std::ostream &
print(std::ostream &os)
const;
std::ostream & operator<<(std::ostream &os, const Raw &raw)
Raw & gap(bool useGap=true)
bool useGap_
whether to print leading space if label is missing
bool useHex_
whether hex() has been called
std::ostream & print(std::ostream &os) const
const char * label_
optional data name or ID; triggers size printing
void printHex(std::ostream &os) const
Raw(const char *label, const char *data, const size_t size)
Raw & minLevel(const int aLevel)
limit data printing to at least the given debugging level
const char * data_
raw data to be printed
Raw & hex()
print data using two hex digits per byte (decoder: xxd -r -p)