Lines Matching defs:buffer
4 struct buffer {
11 With dynamic buffers they are valid only as long as buffer is not
13 buffer in any way. */
15 /* Create a modifiable buffer from given data. Writes past this size will
17 void buffer_create_from_data(buffer_t *buffer, void *data, size_t size);
18 /* Create a non-modifiable buffer from given data. */
19 void buffer_create_from_const_data(buffer_t *buffer,
29 /* Creates a dynamically growing buffer. Whenever write would exceed the
36 /* Free the memory used by buffer. Not needed if the memory is free'd
39 /* Free the memory used by buffer structure, but return the buffer data
43 /* Returns the pool buffer was created with. */
46 /* Write data to buffer at specified position. If pos is beyond the buffer's
50 /* Append data to buffer. */
52 /* Append character to buffer. */
55 /* Insert data to buffer. */
58 /* Delete data from buffer. */
61 /* Fill buffer with zero bytes. */
66 /* Copy data from buffer to another. The buffers may be same in which case
69 the used data in buffer. */
72 /* Append data to buffer from another. copy_size may be set to (size_t)-1 to
73 copy the rest of the used data in buffer. */
77 /* Returns pointer to specified position in buffer. WARNING: The returned
78 address may become invalid if you add more data to buffer. */
80 /* Increase the buffer usage by given size, and return a pointer to beginning
85 buffer is non-modifiable. WARNING: The returned address may become invalid
86 if you add more data to buffer. */
90 /* Set the "used size" of buffer, ie. 0 would set the buffer empty.
91 Must not be used to grow buffer. The data after the buffer's new size will
96 /* Returns the current buffer size. */
98 /* Returns how many bytes we can write to buffer without increasing its size.
103 /* Returns TRUE if buffer contents are identical. */
106 /* Returns pointer to beginning of buffer data. Current used size of buffer is
116 /* Returns the current used buffer size. */
123 /* Crash if buffer was allocated from data stack and stack frame has changed.
125 increase the buffer size here, instead of crashing only randomly when the
126 buffer needs to be increased. */
129 /* This will truncate your byte buffer to contain at most