Lines Matching refs:membuf
34 struct membuf { struct
48 void membuf_purge(struct membuf *mb); argument
69 int membuf_putraw(struct membuf *mb, int maxlen, bool update, char **data);
87 int membuf_getraw(struct membuf *mb, int maxlen, bool update, char **data);
96 bool membuf_putbyte(struct membuf *mb, int ch);
103 int membuf_getbyte(struct membuf *mb);
114 int membuf_peekbyte(struct membuf *mb);
127 int membuf_get(struct membuf *mb, char *buff, int maxlen);
140 int membuf_put(struct membuf *mb, const char *buff, int length);
148 bool membuf_isempty(struct membuf *mb);
156 int membuf_avail(struct membuf *mb);
166 int membuf_size(struct membuf *mb);
177 bool membuf_makecontig(struct membuf *mb);
185 int membuf_free(struct membuf *mb);
202 int membuf_readline(struct membuf *mb, char *str, int maxlen, int minch,
216 int membuf_extend_by(struct membuf *mb, int by, int max);
225 void membuf_init(struct membuf *mb, char *buff, int size);
232 void membuf_uninit(struct membuf *mb);
241 int membuf_new(struct membuf *mb, int size);
248 void membuf_dispose(struct membuf *mb);