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

Function ToPrintableString

src/butil/binary_printer.cpp:144–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144std::string ToPrintableString(const IOBuf& data, size_t max_length) {
145 std::string result;
146 StringAppender appender(&result);
147 PrintIOBuf(&appender, data, max_length);
148 return result;
149}
150
151std::string ToPrintableString(const StringPiece& data, size_t max_length) {
152 std::string result;

Callers 4

ReadOneResponseFunction · 0.85
TEST_FFunction · 0.85
PrintMessageFunction · 0.85
OnBodyMethod · 0.85

Calls 2

PrintIOBufFunction · 0.85
PrintStringFunction · 0.85

Tested by 2

ReadOneResponseFunction · 0.68
TEST_FFunction · 0.68