Lines Matching defs:buffer_t
91 } buffer_t;
94 void buffer_init(buffer_t *buf);
95 /* Cleanup a buffer structure - presently not needed, but if buffer_t is
99 void buffer_close(buffer_t *buf);
103 unsigned int buffer_used(buffer_t *buf); /* How much data in the buffer */
104 unsigned int buffer_unused(buffer_t *buf); /* How much space in the buffer */
105 int buffer_full(buffer_t *buf); /* Boolean, is it full? */
106 int buffer_notfull(buffer_t *buf); /* Boolean, is it not full? */
107 int buffer_empty(buffer_t *buf); /* Boolean, is it empty? */
108 int buffer_notempty(buffer_t *buf); /* Boolean, is it not empty? */
109 unsigned long buffer_total_in(buffer_t *buf); /* Total bytes written to buffer */
110 unsigned long buffer_total_out(buffer_t *buf); /* Total bytes read from buffer */
116 unsigned int buffer_adddata(buffer_t *buf, const unsigned char *ptr,
123 unsigned int buffer_takedata(buffer_t *buf, unsigned char *ptr,
129 unsigned int buffer_tobuffer(buffer_t *to, buffer_t *from, int cap);
134 int buffer_from_fd(buffer_t *buf, int fd);
135 int buffer_to_fd(buffer_t *buf, int fd);
140 void buffer_from_SSL(buffer_t *buf, SSL *ssl);
141 void buffer_to_SSL(buffer_t *buf, SSL *ssl);
142 void buffer_from_BIO(buffer_t *buf, BIO *bio);
143 void buffer_to_BIO(buffer_t *buf, BIO *bio);
164 buffer_t clean_in, clean_out;
165 buffer_t dirty_in, dirty_out;
173 buffer_t *state_machine_get_buffer(state_machine_t *machine, sm_buffer_t type);