NAME ldnsbuffer SYNOPSIS
#include
#include
#include
DESCRIPTION ldnsbuffer implementation of buffers to ease operations ldnsbuffers 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 \ref host2str.c struct ldnsstructbuffer { The current position used for reading/writing: sizet position; The read/write limit: sizet limit; The amount of data the buffer can contain: sizet capacity; The data contained in the buffer: uint8t *data; If the buffer is fixed it cannot be resized: unsigned fixed : 1; /** The current state of the buffer. If writing to the buf‐ fer fails * for any reason, this value is changed. This way, you can perform * multiple writes in sequence and check for success after‐ wards. */ ldnsstatus status; }; typedef struct ldnsstructbuffer ldnsbuffer; AUTHOR The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben. REPORTING BUGS Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html COPYRIGHT
Copyright (c) 2004 - 2006 NLnet Labs. Licensed under the BSD License. There is NO warranty; not even for MER‐ CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO ldnsbuffernew, ldnsbuffernewfrmdata, ldnsbufferclear, ldnsbuf‐ ferprintf, ldnsbufferfree, ldnsbufferexport, ldnsbufferflip, ldnsbufferrewind, ldnsbufferposition, ldnsbuffersetposition, ldnsbufferskip, ldnsbufferlimit, ldnsbuffersetlimit, ldnsbuf‐ fercapacity, ldnsbuffersetcapacity, ldnsbufferreserve, ldnsbuf‐ ferat, ldnsbufferbegin, ldnsbufferend, ldnsbuffercurrent, ldnsbufferremainingat, ldnsbufferremaining, ldnsbufferavail‐ ableat, ldnsbufferavailable, ldnsbufferstatus, ldnsbuffersta‐ tusok, ldnsbufferwriteat, ldnsbufferwriteat, ldnsbufferwrite, ldnsbufferwritestringat, ldnsbufferwritestring, ldnsbuf‐ ferwriteu8at, ldnsbufferwriteu8, ldnsbufferwriteu16at, ldnsbufferwriteu16, ldnsbufferreadat, ldnsbufferread, ldnsbuf‐ ferreadu8at, ldnsbufferreadu8, ldnsbufferreadu16at, ldnsbuf‐ ferreadu16, ldnsbufferreadu32at, ldnsbufferreadu32. And perl‐ doc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. REMARKS This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl. 30 May 2006 ldns(3)