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