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

Method AddString

src/brpc/amf.h:244–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242 size_t size() const { return _size; }
243
244 void AddString(const butil::StringPiece& val) { AddField()->SetString(val); }
245 void AddBool(bool val) { AddField()->SetBool(val); }
246 void AddNumber(double val) { AddField()->SetNumber(val); }
247 void AddNull() { AddField()->SetNull(); }

Callers 2

JsonValueToProtoFieldFunction · 0.80
ReadAMFArrayItemFunction · 0.80

Calls 1

SetStringMethod · 0.45

Tested by

no test coverage detected