Lines Matching defs:buf
11 * 1. the ->buf member is always malloc-ed, hence strbuf's can be used to
14 * It is NOT legal to copy the ->buf pointer away.
18 * 2. the ->buf member is a byte array that has at least ->len + 1 bytes
19 * allocated. The extra byte is used to store a '\0', allowing the ->buf
27 * ... Here, the memory array starting at sb->buf, and of length
53 char *buf;
59 int strbuf_init(struct strbuf *buf, ssize_t hint);
60 void strbuf_release(struct strbuf *buf);
61 char *strbuf_detach(struct strbuf *buf, size_t *);
68 int strbuf_grow(struct strbuf *buf, size_t);
78 sb->buf[len] = '\0';
85 int strbuf_add(struct strbuf *buf, const void *, size_t);