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

Method integer

src/brpc/redis_reply.h:196–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194inline bool RedisReply::is_array() const { return _type == REDIS_REPLY_ARRAY; }
195
196inline int64_t RedisReply::integer() const {
197 if (is_integer()) {
198 return _data.integer;
199 }
200 CHECK(false) << "The reply is " << RedisReplyTypeToString(_type)
201 << ", not an integer";
202 return 0;
203}
204
205inline void RedisReply::SetNullArray() {
206 if (_type != REDIS_REPLY_NIL) {

Callers 5

AssertReplyEqualFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
SendToEndpointMethod · 0.80

Calls 1

RedisReplyTypeToStringFunction · 0.85

Tested by 3

AssertReplyEqualFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64