diff options
Diffstat (limited to 'lib/bufq.h')
-rw-r--r-- | lib/bufq.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bufq.h b/lib/bufq.h index b220f01ec..b42a880ac 100644 --- a/lib/bufq.h +++ b/lib/bufq.h @@ -214,6 +214,12 @@ bool Curl_bufq_peek_at(struct bufq *q, size_t offset, */ void Curl_bufq_skip(struct bufq *q, size_t amount); +/** + * Same as `skip` but shift tail data to the start afterwards, + * so that further writes will find room in tail. + */ +void Curl_bufq_skip_and_shift(struct bufq *q, size_t amount); + typedef ssize_t Curl_bufq_writer(void *writer_ctx, const unsigned char *buf, size_t len, CURLcode *err); |