proxygen
proxygen::HexFollyPrinter Class Reference

#include <Logging.h>

Inheritance diagram for proxygen::HexFollyPrinter:
proxygen::IOBufPrinter

Public Member Functions

std::string print (const folly::IOBuf *buf) override
 
- Public Member Functions inherited from proxygen::IOBufPrinter
 IOBufPrinter ()
 
virtual ~IOBufPrinter ()
 

Additional Inherited Members

- Public Types inherited from proxygen::IOBufPrinter
enum  Format : uint8_t { Format::HEX_FOLLY = 0, Format::HEX_16 = 1, Format::CHAIN_INFO = 2, Format::BIN = 3 }
 
- Static Public Member Functions inherited from proxygen::IOBufPrinter
static std::string printChain (const folly::IOBuf *buf, Format format, bool coalesce)
 
static std::string printHexFolly (const folly::IOBuf *buf, bool coalesce=false)
 
static std::string printHex16 (const folly::IOBuf *buf, bool coalesce=false)
 
static std::string printChainInfo (const folly::IOBuf *buf)
 
static std::string printBin (const folly::IOBuf *buf, bool coalesce=false)
 

Detailed Description

Definition at line 155 of file Logging.h.

Member Function Documentation

string proxygen::HexFollyPrinter::print ( const folly::IOBuf buf)
overridevirtual

Implements proxygen::IOBufPrinter.

Definition at line 55 of file Logging.cpp.

References folly::IOBuf::data(), folly::hexDump(), and folly::IOBuf::length().

55  {
56  return folly::hexDump(buf->data(), buf->length());
57 }
const uint8_t * data() const
Definition: IOBuf.h:499
std::size_t length() const
Definition: IOBuf.h:533
void hexDump(const void *ptr, size_t size, OutIt out)
Definition: String-inl.h:645

The documentation for this class was generated from the following files: