A buffer data structure with exponential growth that ensures that it is always null padded.
s_buffer_new | Create a new buffer. |
s_buffer_delete | Delete a buffer and it’s contents. |
s_buffer_append | Append a number of bytes to the given buffer. |
s_buffer_clear | Clear the data in the buffer. |
s_buffer_data | Get a pointer to the beginning of the data in the buffer. |
s_buffer_size | Get the size of the data in the buffer. |
s_buffer_truncate | Truncate the buffer. |
Opaque definition of the buffer.
It is a buffer with exponential growth, that ensures that it is always null padded.
Append a number of bytes to the given buffer.
Parameters: |
|
---|