| 25 | } |
| 26 | |
| 27 | void redis_request::reserve(size_t size) |
| 28 | { |
| 29 | if (size_ >= size) { |
| 30 | return; |
| 31 | } |
| 32 | |
| 33 | size_t len = size * sizeof(struct iovec); |
| 34 | |
| 35 | if (iov_ == NULL) { |
| 36 | iov_ = (struct iovec*) acl_mymalloc(len); |
| 37 | } else { |
| 38 | iov_ = (struct iovec*) acl_myrealloc(iov_, len); |
| 39 | } |
| 40 | |
| 41 | size_ = size; |
| 42 | } |
| 43 | |
| 44 | void redis_request::put(const char* data, size_t dlen) |
| 45 | { |
no outgoing calls
no test coverage detected