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

Method as_string

src/butil/strings/string_piece.h:262–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 }
261
262 STRING_TYPE as_string() const {
263 // std::string doesn't like to take a NULL pointer even with a 0 size.
264 return empty() ? STRING_TYPE() : STRING_TYPE(data(), size());
265 }
266
267 // Return the first/last character, UNDEFINED when StringPiece is empty.
268 char front() const { return *ptr_; }

Callers 15

FindCommandHandlerMethod · 0.45
ParseRequestMethod · 0.45
DEFINE_SMALL_ARRAYFunction · 0.45
SendStopMessageMethod · 0.45
AddServiceMethod · 0.45
ConsumeCommandFunction · 0.45
ParseNsheadMetaMethod · 0.45
ParseResponseFunction · 0.45
GetServersMethod · 0.45

Calls 2

emptyFunction · 0.50
dataFunction · 0.50

Tested by

no test coverage detected