Read raw bytes through a redisContext. The read operation is not greedy * and may not fill the buffer entirely. */
| 7082 | * and may not fill the buffer entirely. |
| 7083 | */ |
| 7084 | static ssize_t readConn(redisContext *c, char *buf, size_t len) |
| 7085 | { |
| 7086 | return c->funcs->read(c, buf, len); |
| 7087 | } |
| 7088 | |
| 7089 | /* Sends SYNC and reads the number of bytes in the payload. Used both by |
| 7090 | * slaveMode() and getRDB(). |