1ldns(3) Library Functions Manual ldns(3)
2
3
4
6 ldns_buffer_remaining_at, ldns_buffer_remaining, ldns_buffer_avail‐
7 able_at, ldns_buffer_available, ldns_buffer_status, ldns_buffer_sta‐
8 tus_ok - check buffer status
9
10
12 #include <stdint.h>
13 #include <stdbool.h>
14
15 #include <ldns/ldns.h>
16
17 size_t ldns_buffer_remaining_at(const ldns_buffer *buffer, size_t at);
18
19 size_t ldns_buffer_remaining(const ldns_buffer *buffer);
20
21 int ldns_buffer_available_at(const ldns_buffer *buffer, size_t at,
22 size_t count);
23
24 int ldns_buffer_available(const ldns_buffer *buffer, size_t count);
25
26 ldns_status ldns_buffer_status(const ldns_buffer *buffer);
27
28 bool ldns_buffer_status_ok(const ldns_buffer *buffer);
29
31 ldns_buffer_remaining_at() returns the number of bytes remaining
32 between the indicated position and the limit.
33 buffer: the buffer
34 at: indicated position
35 Returns number of bytes
36
37 ldns_buffer_remaining() returns the number of bytes remaining between
38 the buffer's position and limit.
39 buffer: the buffer
40 Returns the number of bytes
41
42 ldns_buffer_available_at() checks if the buffer has at least COUNT more
43 bytes available. Before reading or writing the caller needs to
44 ensure enough space is available!
45 buffer: the buffer
46 at: indicated position
47 count: how much is available
48 Returns true or false (as int?)
49
50 ldns_buffer_available() checks if the buffer has count bytes available
51 at the current position
52 buffer: the buffer
53 count: how much is available
54 Returns true or false (as int?)
55
56 ldns_buffer_status() returns the status of the buffer \param[in] buffer
57 Returns the status
58
59 ldns_buffer_status_ok() returns true if the status of the buffer is
60 LDNS_STATUS_OK, false otherwise
61 buffer: the buffer
62 Returns true or false
63
65 The ldns team at NLnet Labs. Which consists out of Jelte Jansen and
66 Miek Gieben.
67
68
70 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
71 http://www.nlnetlabs.nl/bugs/index.html
72
73
75 Copyright (c) 2004 - 2006 NLnet Labs.
76
77 Licensed under the BSD License. There is NO warranty; not even for MER‐
78 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
79
80
82 ldns_buffer. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034
83 and RFC4035.
84
86 This manpage was automatically generated from the ldns source code by
87 use of Doxygen and some perl.
88
89
90
91 30 May 2006 ldns(3)