MCPcopy Create free account
hub / github.com/apache/kvrocks / RedisProtocolToLuaTypeInt

Function RedisProtocolToLuaTypeInt

src/storage/scripting.cc:1117–1122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115}
1116
1117const char *RedisProtocolToLuaTypeInt(lua_State *lua, const char *reply) {
1118 const char *p = strchr(reply + 1, '\r');
1119 auto value = ParseInt<int64_t>(std::string(reply + 1, p - reply - 1), 10).ValueOr(0);
1120 lua_pushnumber(lua, static_cast<lua_Number>(value));
1121 return p + 2;
1122}
1123
1124const char *RedisProtocolToLuaTypeBulk(lua_State *lua, const char *reply) {
1125 const char *p = strchr(reply + 1, '\r');

Callers 1

RedisProtocolToLuaTypeFunction · 0.85

Calls 1

ValueOrMethod · 0.80

Tested by

no test coverage detected