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

Method SerializeTo

src/brpc/redis.cpp:156–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156bool RedisRequest::SerializeTo(butil::IOBuf* buf) const {
157 if (_has_error) {
158 LOG(ERROR) << "Reject serialization due to error in AddCommand[V]";
159 return false;
160 }
161 *buf = _buf;
162 return true;
163}
164
165::google::protobuf::Metadata RedisRequest::GetMetadata() const {
166 ::google::protobuf::Metadata metadata{};

Callers 8

TEST_FFunction · 0.45
EncodeReplyFunction · 0.45
ParseRequestMethod · 0.45
ConsumeCommandFunction · 0.45
SerializeRedisRequestFunction · 0.45
CompressFunction · 0.45
SnappyCompressFunction · 0.45
SerializeRpcMessageFunction · 0.45

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.36