implementation of buffers to ease operations More...
|The current position used for reading/writing. |
|The read/write limit. |
|The amount of data the buffer can contain. |
|The data contained in the buffer. |
|If the buffer is fixed it cannot be resized. |
|The current state of the buffer. More...|
implementation of buffers to ease operations
sldns_buffers can contain arbitrary information, per octet. You can write to the current end of a buffer, read from the current position, and access any data within it.
The current state of the buffer.
If writing to the buffer fails for any reason, this value is changed. This way, you can perform multiple writes in sequence and check for success afterwards.
Referenced by sldns_buffer_new(), sldns_buffer_new_frm_data(), and sldns_buffer_status().