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

Method add_string

src/mcpack2pb/serializer.cpp:462–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462void Serializer::add_string(const StringWrapper& name, const StringWrapper& s) {
463 add_binary_internal(_stream, peek_group_info(), name,
464 butil::StringPiece(s.data(), s.size() + 1), FIELD_STRING);
465}
466void Serializer::add_string(const StringWrapper& s) {
467 add_binary_internal(_stream, peek_group_info(),
468 butil::StringPiece(s.data(), s.size() + 1), FIELD_STRING);

Callers 2

AppendErrorFunction · 0.80
SerializeUbrpcRequestFunction · 0.80

Calls 3

add_binary_internalFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected