MCPcopy Create free account
hub / github.com/acl-dev/acl / get_integer

Method get_integer

lib_acl_cpp/src/redis/redis_result.cpp:102–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102int redis_result::get_integer(bool* success /* = NULL */) const
103{
104 if (success) {
105 *success = false;
106 }
107 if (result_type_ != REDIS_RESULT_INTEGER) {
108 return -1;
109 }
110 const char* ptr = get(0);
111 if (ptr == NULL || *ptr == 0) {
112 return -1;
113 }
114 if (success) {
115 *success = true;
116 }
117 return atoi(ptr);
118}
119
120long long int redis_result::get_integer64(bool* success /* = NULL */) const
121{

Callers 15

initMethod · 0.45
helloMethod · 0.45
result_numberMethod · 0.45
get_numberMethod · 0.45
get_statusMethod · 0.45
renamenxMethod · 0.45
xpending_summaryMethod · 0.45
get_pending_messageMethod · 0.45
get_one_consumerMethod · 0.45
get_one_groupMethod · 0.45
xinfo_streamMethod · 0.45
get_slot_masterMethod · 0.45

Calls 1

getFunction · 0.50

Tested by

no test coverage detected