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 - buffer positioning
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(const 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 po‐
44 sition 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.
56
57
59 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
60 http://www.nlnetlabs.nl/bugs/index.html
61
62
64 Copyright (c) 2004 - 2006 NLnet Labs.
65
66 Licensed under the BSD License. There is NO warranty; not even for MER‐
67 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
68
69
71 ldns_buffer. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034
72 and RFC4035.
73
75 This manpage was automatically generated from the ldns source code.
76
77
78
79 30 May 2006 ldns(3)