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

Method Swap

src/brpc/memcache.cpp:126–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void MemcacheRequest::Swap(MemcacheRequest* other) {
127 if (other != this) {
128 _buf.swap(other->_buf);
129 std::swap(_pipelined_count, other->_pipelined_count);
130 std::swap(_cached_size_, other->_cached_size_);
131 }
132}
133
134::google::protobuf::Metadata MemcacheRequest::GetMetadata() const {
135 ::google::protobuf::Metadata metadata{};

Callers

nothing calls this directly

Calls 2

swapFunction · 0.70
swapMethod · 0.45

Tested by

no test coverage detected