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

Method Clear

src/brpc/redis.cpp:60–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void RedisRequest::Clear() {
61 _ncommand = 0;
62 _has_error = false;
63 _buf.clear();
64}
65
66size_t RedisRequest::ByteSizeLong() const {
67 int total_size = static_cast<int>(_buf.size());

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected