proxygen
proxygen::ChainInfoPrinter Class Reference

#include <Logging.h>

Inheritance diagram for proxygen::ChainInfoPrinter:
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 160 of file Logging.h.

Member Function Documentation

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

Implements proxygen::IOBufPrinter.

Definition at line 76 of file Logging.cpp.

References folly::IOBuf::length(), and folly::IOBuf::tailroom().

76  {
77  stringstream out;
78  out << "iobuf of size " << buf->length()
79  << " tailroom " << buf->tailroom();
80  return out.str();
81 }
std::size_t tailroom() const
Definition: IOBuf.h:551
std::size_t length() const
Definition: IOBuf.h:533

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