1ldns(3)                    Library Functions Manual                    ldns(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

31       ldns_buffer_remaining_at() returns the number of bytes remaining be‐
32              tween 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

AUTHOR

65       The ldns team at NLnet Labs.
66
67

REPORTING BUGS

69       Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
70       http://www.nlnetlabs.nl/bugs/index.html
71
72
74       Copyright (c) 2004 - 2006 NLnet Labs.
75
76       Licensed under the BSD License. There is NO warranty; not even for MER‐
77       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
78
79

SEE ALSO

81       ldns_buffer.  And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034
82       and RFC4035.
83

REMARKS

85       This manpage was automatically generated from the ldns source code.
86
87
88
89                                  30 May 2006                          ldns(3)
Impressum