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

Function RedisProtocolToLuaTypeBigNumber

src/storage/scripting.cc:1232–1239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1230}
1231
1232const char *RedisProtocolToLuaTypeBigNumber(lua_State *lua, const char *reply) {
1233 const char *p = strchr(reply + 1, '\r');
1234 lua_newtable(lua);
1235 lua_pushstring(lua, "big_number");
1236 lua_pushlstring(lua, reply + 1, p - reply - 1);
1237 lua_settable(lua, -3);
1238 return p + 2;
1239}
1240
1241const char *RedisProtocolToLuaTypeVerbatimString(lua_State *lua, const char *reply) {
1242 const char *p = strchr(reply + 1, '\r');

Callers 1

RedisProtocolToLuaTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected