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.
Definition at line 116 of file sbuffer.h.
| unsigned sldns_buffer::_vfixed |
If the buffer is vfixed, no more than capacity bytes willl be written to _data, however the _position counter will be updated with the amount that would have been written in consecutive writes. This allows for a modus operandi in which a sequence is written on a fixed capacity buffer (perhaps with _data on stack). When everything could be written, then the _data is immediately usable, if not, then a buffer could be allocated sized precisely to fit the data for a second attempt.
Definition at line 142 of file sbuffer.h.