MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / redisProtocolToLuaType_Int

Function redisProtocolToLuaType_Int

src/scripting.cpp:162–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162char *redisProtocolToLuaType_Int(lua_State *lua, char *reply) {
163 char *p = strchr(reply+1,'\r');
164 long long value;
165
166 string2ll(reply+1,p-reply-1,&value);
167 lua_pushnumber(lua,(lua_Number)value);
168 return p+2;
169}
170
171char *redisProtocolToLuaType_Bulk(lua_State *lua, char *reply) {
172 char *p = strchr(reply+1,'\r');

Callers 1

redisProtocolToLuaTypeFunction · 0.85

Calls 2

lua_pushnumberFunction · 0.85
string2llFunction · 0.70

Tested by

no test coverage detected