Lines Matching full:buffer

19  * struct sshp_buf - Parser buffer for SSH messages.
20 * @ptr: Pointer to the beginning of the buffer.
21 * @len: Number of bytes used in the buffer.
22 * @cap: Maximum capacity of the buffer.
31 * sshp_buf_init() - Initialize a SSH parser buffer.
32 * @buf: The buffer to initialize.
33 * @ptr: The memory backing the buffer.
34 * @cap: The length of the memory backing the buffer, i.e. its capacity.
36 * Initializes the buffer with the given memory as backing and set its used
47 * sshp_buf_alloc() - Allocate and initialize a SSH parser buffer.
48 * @buf: The buffer to initialize/allocate to.
49 * @cap: The desired capacity of the buffer.
52 * Allocates @cap bytes and initializes the provided buffer struct with the
70 * sshp_buf_free() - Free a SSH parser buffer.
71 * @buf: The buffer to free.
73 * Frees a SSH parser buffer by freeing the memory backing it and then
75 * free a buffer previously allocated with sshp_buf_alloc().
86 * sshp_buf_drop() - Drop data from the beginning of the buffer.
87 * @buf: The buffer to drop data from.
90 * Drops the first @n bytes from the buffer. Re-aligns any remaining data to
91 * the beginning of the buffer.
100 * sshp_buf_read_from_fifo() - Transfer data from a fifo to the buffer.
101 * @buf: The buffer to write the data into.
104 * Transfers the data contained in the fifo to the buffer, removing it from
106 * limited either by the remaining space in the buffer or by the number of
123 * sshp_buf_span_from() - Initialize a span from the given buffer and offset.
124 * @buf: The buffer to create the span from.
125 * @offset: The offset in the buffer at which the span should start.
129 * the buffer, with the length of the span being capped by the number of bytes
130 * used in the buffer after the offset (i.e. bytes remaining after the
134 * to the number of bytes used in the buffer or the buffer capacity. This must