| 1145 | } |
| 1146 | |
| 1147 | const char *RedisProtocolToLuaTypeError(lua_State *lua, const char *reply) { |
| 1148 | const char *p = strchr(reply + 1, '\r'); |
| 1149 | |
| 1150 | lua_newtable(lua); |
| 1151 | lua_pushstring(lua, "err"); |
| 1152 | lua_pushlstring(lua, reply + 1, p - reply - 1); |
| 1153 | lua_settable(lua, -3); |
| 1154 | return p + 2; |
| 1155 | } |
| 1156 | |
| 1157 | const char *RedisProtocolToLuaTypeAggregate(lua_State *lua, const char *reply, int atype) { |
| 1158 | const char *p = strchr(reply + 1, '\r'); |
no outgoing calls
no test coverage detected