MCPcopy Create free account
hub / github.com/apache/brpc / Print

Method Print

src/butil/binary_printer.cpp:135–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void ToPrintable::Print(std::ostream& os) const {
136 OStreamAppender appender(os);
137 if (_iobuf) {
138 PrintIOBuf(&appender, *_iobuf, _max_length);
139 } else if (!_str.empty()) {
140 PrintString(&appender, _str, _max_length);
141 }
142}
143
144std::string ToPrintableString(const IOBuf& data, size_t max_length) {
145 std::string result;

Callers 1

binary_printer.hFile · 0.45

Calls 3

PrintIOBufFunction · 0.85
PrintStringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected