• Home
  • Raw
  • Download

Lines Matching +full:read +full:- +full:modify +full:- +full:write

16  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
23 * SPDX-License-Identifier: curl
32 * The size is fixed a creation with read and write offset
70 * of bytes that can be read. For an empty bufq, `len` will be 0.
77 * e.g. when the head chunk is partially read. `len` may also become
80 * By default, writing to a full bufq will return (-1, CURLE_AGAIN). Same
87 * By default and without a pool, a bufq will keep chunks that read
95 struct buf_chunk *head; /* chunk with bytes to read from */
96 struct buf_chunk *tail; /* chunk to write to */
106 * Default behaviour: chunk limit is "hard", meaning attempts to write
108 * -1, CURLE_AGAIN. */
172 * Write buf to the end of the buffer queue. The buf is copied
174 * A return code of -1 indicates an error, setting `err` to the
186 * Read buf from the start of the buffer queue. The buf is copied
188 * A return code of -1 indicates an error, setting `err` to the
200 * modify the buffer queue.
224 * the amount of buf written. A writer may return -1 and CURLE_AGAIN
227 * -1 is returned on any other errors reported by the writer.
228 * Note that in case of a -1 chunks may have been written and
239 * Read date and append it to the end of the buffer queue until the
241 * -1 and CURLE_AGAIN to indicate blocking.
242 * Returns the total amount of buf read (may be 0) or -1 on other
244 * Note that in case of a -1 chunks may have been read and
251 * Read *once* up to `max_len` bytes and append it to the buffer.
253 * Returns the total amount of buf read (may be 0) or -1 on other
261 * Write buf to the end of the buffer queue.
262 * Will write bufq content or passed `buf` directly using the `writer`