Read raw bytes through a redisContext. The read operation is not greedy * and may not fill the buffer entirely. */
| 6172 | * and may not fill the buffer entirely. |
| 6173 | */ |
| 6174 | static ssize_t readConn(redisContext *c, char *buf, size_t len) |
| 6175 | { |
| 6176 | return c->funcs->read(c, buf, len); |
| 6177 | } |
| 6178 | |
| 6179 | /* Sends SYNC and reads the number of bytes in the payload. Used both by |
| 6180 | * slaveMode() and getRDB(). |