Lines Matching refs:strbuf
44 struct strbuf { struct
53 extern void strbuf_init(struct strbuf *buf, ssize_t hint);
54 extern void strbuf_release(struct strbuf *);
55 extern char *strbuf_detach(struct strbuf *, size_t *);
58 static inline ssize_t strbuf_avail(const struct strbuf *sb) { in strbuf_avail()
62 extern void strbuf_grow(struct strbuf *, size_t);
64 static inline void strbuf_setlen(struct strbuf *sb, size_t len) { in strbuf_setlen()
73 static inline void strbuf_addch(struct strbuf *sb, int c) { in strbuf_addch()
79 extern void strbuf_remove(struct strbuf *, size_t pos, size_t len);
81 extern void strbuf_add(struct strbuf *, const void *, size_t);
82 static inline void strbuf_addstr(struct strbuf *sb, const char *s) { in strbuf_addstr()
87 extern void strbuf_addf(struct strbuf *sb, const char *fmt, ...);
90 extern ssize_t strbuf_read(struct strbuf *, int fd, ssize_t hint);