Home | History | Annotate | Download | only in make

Lines Matching defs:Buffer

82 /* An automatically growing null-terminated buffer of characters. */
83 typedef struct Buffer {
84 size_t cap; /* Allocated size of the buffer, including the '\0' */
85 size_t len; /* Number of bytes in buffer, excluding the '\0' */
86 char *data; /* The buffer itself (always null-terminated) */
87 } Buffer;
89 void Buf_Expand(Buffer *);
91 /* Mark the buffer as empty, so it can be filled with data again. */
93 Buf_Clear(Buffer *buf)
99 /* Adds a single byte to a buffer. */
101 Buf_AddByte(Buffer *buf, char byte)
113 Buf_EndsWith(const Buffer *buf, char ch)
118 void Buf_AddBytes(Buffer *, const char *, size_t);
119 void Buf_AddRange(Buffer *, const char *, const char *);
120 void Buf_AddStr(Buffer *, const char *);
121 void Buf_AddInt(Buffer *, int);
122 void Buf_AddFlag(Buffer *, bool, const char *);
123 void Buf_Init(Buffer *);
124 void Buf_InitSize(Buffer *, size_t);
125 void Buf_Done(Buffer *);
126 char *Buf_DoneData(Buffer *) MAKE_ATTR_USE;