1ldns(3) Library Functions Manual ldns(3)
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 #include <stdint.h>
12 #include <stdbool.h>
13
14 #include <ldns/ldns.h>
15
16 void ldns_buffer_flip(ldns_buffer *buffer);
17
18 void ldns_buffer_rewind(ldns_buffer *buffer);
19
20 size_t ldns_buffer_position(ldns_buffer *buffer);
21
22 void ldns_buffer_set_position(ldns_buffer *buffer, size_t mark);
23
24 void ldns_buffer_skip(ldns_buffer *buffer, ssize_t count);
25
27 ldns_buffer_flip() makes the buffer ready for reading the data that has
28 been written to the buffer. The buffer's limit is set to the
29 current position and the position is set to 0.
30
31 buffer: the buffer to flip
32 Returns void
33
34 ldns_buffer_rewind() make the buffer ready for re-reading the data.
35 The buffer's position is reset to 0.
36 buffer: the buffer to rewind
37
38 ldns_buffer_position() returns the current position in the buffer (as a
39 number of bytes)
40 buffer: the buffer
41 Returns the current position
42
43 ldns_buffer_set_position() sets the buffer's position to MARK. The
44 position must be less than or equal to the buffer's limit.
45 buffer: the buffer
46 mark: the mark to use
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 buffer: the buffer
52 count: the count to use
53
55 The ldns team at NLnet Labs. Which consists out of Jelte Jansen and
56 Miek Gieben.
57
58
60 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
61 http://www.nlnetlabs.nl/bugs/index.html
62
63
65 Copyright (c) 2004 - 2006 NLnet Labs.
66
67 Licensed under the BSD License. There is NO warranty; not even for MER‐
68 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
69
70
72 ldns_buffer. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034
73 and RFC4035.
74
76 This manpage was automaticly generated from the ldns source code by use
77 of Doxygen and some perl.
78
79
80
81 30 May 2006 ldns(3)