Lines Matching refs:size_t
37 size_t dlen; /* the amount of allocated x.data[] */
38 size_t r_offset; /* first unread bytes */
39 size_t w_offset; /* one after last written byte */
55 size_t chunk_size; /* the size of chunks in this pool */
56 size_t spare_count; /* current number of spare chunks in list */
57 size_t spare_max; /* max number of spares to keep */
61 size_t chunk_size, size_t spare_max);
99 size_t chunk_count; /* current number of chunks in `head+spare` */
100 size_t max_chunks; /* max `head` chunks to use */
101 size_t chunk_size; /* size of chunks to manage */
125 void Curl_bufq_init(struct bufq *q, size_t chunk_size, size_t max_chunks);
131 void Curl_bufq_init2(struct bufq *q, size_t chunk_size,
132 size_t max_chunks, int opts);
135 size_t max_chunks, int opts);
151 size_t Curl_bufq_len(const struct bufq *q);
159 size_t Curl_bufq_space(const struct bufq *q);
178 const unsigned char *buf, size_t len,
182 const char *buf, size_t len,
183 size_t *pnwritten);
189 CURLcode Curl_bufq_unwrite(struct bufq *q, size_t len);
197 ssize_t Curl_bufq_read(struct bufq *q, unsigned char *buf, size_t len,
200 CURLcode Curl_bufq_cread(struct bufq *q, char *buf, size_t len,
201 size_t *pnread);
213 const unsigned char **pbuf, size_t *plen);
215 bool Curl_bufq_peek_at(struct bufq *q, size_t offset,
216 const unsigned char **pbuf, size_t *plen);
223 void Curl_bufq_skip(struct bufq *q, size_t amount);
226 const unsigned char *buf, size_t len,
241 unsigned char *buf, size_t len,
262 ssize_t Curl_bufq_sipn(struct bufq *q, size_t max_len,
274 const unsigned char *buf, size_t len,