Lines Matching refs:buffer

15 /* Declarations concerning the buffer data structure.  */
29 struct buffer;
36 typedef int (*type_buf_shutdown) (struct buffer *);
37 typedef void (*type_buf_memory_error) (struct buffer *);
39 struct buffer
44 /* Last buffer on data chain. */
47 /* Nonzero if the buffer is in nonblocking mode. */
51 buffer. Either the input or output field must be set, but not
54 /* Read data into the buffer DATA. There is room for up to SIZE
82 /* Return the file descriptor underlying this buffer, if any, or -1
106 /* Next buffer in linked list. */
119 * Actual buffer. This never changes after the structure is
120 * allocated. The buffer is BUFFER_DATA_SIZE bytes.
129 typedef void (*BUFMEMERRPROC) (struct buffer *);
131 struct buffer *buf_initialize (type_buf_input,
139 void buf_free (struct buffer *);
140 struct buffer *buf_nonio_initialize (void (*) (struct buffer *));
141 struct buffer *compress_buffer_initialize (struct buffer *, int, int,
142 void (*) (struct buffer *));
143 struct buffer *packetizing_buffer_initialize
144 (struct buffer *, int (*) (void *, const char *, char *, size_t),
146 void (*) (struct buffer *));
147 int buf_empty (struct buffer *);
148 int buf_empty_p (struct buffer *);
149 void buf_output (struct buffer *, const char *, size_t);
150 void buf_output0 (struct buffer *, const char *);
151 void buf_append_char (struct buffer *, int);
152 int buf_send_output (struct buffer *);
153 int buf_flush (struct buffer *, bool);
154 int set_nonblock (struct buffer *);
155 int set_block (struct buffer *);
156 int buf_send_counted (struct buffer *);
157 int buf_send_special_count (struct buffer *, int);
158 void buf_append_data (struct buffer *, struct buffer_data *,
160 void buf_append_buffer (struct buffer *, struct buffer *);
164 int buf_input_data (struct buffer *, size_t *);
165 int buf_read_line (struct buffer *, char **, size_t *);
166 int buf_read_short_line (struct buffer *buf, char **line, size_t *lenp,
168 int buf_read_data (struct buffer *, size_t, char **, size_t *);
169 void buf_copy_lines (struct buffer *, struct buffer *, int);
170 int buf_copy_counted (struct buffer *, struct buffer *, int *);
172 int buf_length (struct buffer *);
173 int buf_get_fd (struct buffer *);
174 int buf_shutdown (struct buffer *);
176 void buf_copy_data (struct buffer *buf, struct buffer_data *data,
179 void buf_free_data (struct buffer *);
182 int buf_count_mem (struct buffer *);
185 struct buffer *
187 void (*memory) (struct buffer *));