implementation of buffers to ease operations More...
Data Fields | |
size_t | _position |
The current position used for reading/writing. More... | |
size_t | _limit |
The read/write limit. More... | |
size_t | _capacity |
The amount of data the buffer can contain. More... | |
uint8_t * | _data |
The data contained in the buffer. More... | |
unsigned | _fixed: 1 |
If the buffer is fixed it cannot be resized. More... | |
ldns_status | _status |
The current state of the buffer. More... | |
implementation of buffers to ease operations
ldns_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.
Example use of buffers is in the source code of host2str.c
size_t ldns_struct_buffer::_position |
size_t ldns_struct_buffer::_capacity |
uint8_t* ldns_struct_buffer::_data |
unsigned ldns_struct_buffer::_fixed |
ldns_status ldns_struct_buffer::_status |