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

Method CopyToString

src/butil/strings/string_piece.h:294–296  ·  view source on GitHub ↗

Sets the value of the given string target type to be the current string. This saves a temporary over doing |a = b.as_string()|

Source from the content-addressed store, hash-verified

292 // Sets the value of the given string target type to be the current string.
293 // This saves a temporary over doing |a = b.as_string()|
294 void CopyToString(STRING_TYPE* target) const {
295 internal::CopyToString(*this, target);
296 }
297
298 void AppendToString(STRING_TYPE* target) const {
299 internal::AppendToString(*this, target);

Callers 9

TESTFunction · 0.80
RemoveMethodsOfMethod · 0.80
operator=Method · 0.80
ParseServerListFunction · 0.80
GetServersMethod · 0.80
OnCreateStreamMethod · 0.80
GetServersMethod · 0.80
MutableMetaMethod · 0.80

Calls 1

CopyToStringFunction · 0.85

Tested by 1

TESTFunction · 0.64