1ldns(25 Apr 2005) ldns(25 Apr 2005)
2
3
4
6 ldns_buffer_flip, ldns_buffer_rewind, ldns_buffer_position, ldns_buf‐
7 fer_set_position, ldns_buffer_skip
8
9
11 #ifdef HAVE_STDINT_H
12 #include <stdint.h>
13 #endif /* HAVE_STDINT_H */
14
15 #ifdef HAVE_STDBOOL_H
16 #include <stdbool.h>
17 #endif /* HAVE_STDBOOL_H */
18
19 #include <ldns/ldns.h>
20
21 void ldns_buffer_flip(ldns_buffer *buffer);
22
23 void ldns_buffer_rewind(ldns_buffer *buffer);
24
25 size_t ldns_buffer_position(ldns_buffer *buffer);
26
27 void ldns_buffer_set_position(ldns_buffer *buffer, size_t mark);
28
29 void ldns_buffer_skip(ldns_buffer *buffer, ssize_t count);
30
32 ldns_buffer_flip() makes the buffer ready for reading the data that has
33 been written to the buffer. The buffer's limit is set to the
34 current position and the position is set to 0.
35
36 buffer: the buffer to flip
37 Returns void
38
39 ldns_buffer_rewind() make the buffer ready for re-reading the data.
40 The buffer's position is reset to 0.
41
42 ldns_buffer_position() returns the current position in the buffer (as a
43 number of bytes)
44
45 ldns_buffer_set_position() sets the buffer's position to MARK. The
46 position must be less than or equal to the buffer's limit.
47
48 ldns_buffer_skip() changes the buffer's position by COUNT bytes. The
49 position must not be moved behind the buffer's limit or before
50 the beginning of the buffer.
51
53 The ldns team at NLnet Labs. Which consists out of: Jelte Jansen, Erik
54 Rozendaal and Miek Gieben.
55
56
58 Please report bugs to ldns-team@nlnetlabs.nl or in our Bugzilla at
59 http://www.nlnetlabs.nl/bugs/index.html
60
61 Be sure to select ldns as the product.
62
63
65 Copyright (c) 2004, 2005 NLnet Labs. Licensed under the BSD License.
66 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
67 PARTICULAR PURPOSE.
68
70 perldoc Net::DNS, RFC1043, RFC1035, RFC4033, RFC4034 and RFC4035.
71
73 This manpage was automaticly generated from the ldns source code by use
74 of Doxygen and some perl.
75
76
77
78 ldns(25 Apr 2005)