1ldns(25 Apr 2005)                                            ldns(25 Apr 2005)
2
3
4

NAME

6       ldns_buffer_write_at,      ldns_buffer_write_at,     ldns_buffer_write,
7       ldns_buffer_write_string_at,    ldns_buffer_write_string,     ldns_buf‐
8       fer_write_u8_at,     ldns_buffer_write_u8,    ldns_buffer_write_u16_at,
9       ldns_buffer_write_u16, ldns_buffer_read_at, ldns_buffer_read, ldns_buf‐
10       fer_read_u8_at, ldns_buffer_read_u8, ldns_buffer_read_u16_at, ldns_buf‐
11       fer_read_u16, ldns_buffer_read_u32_at, ldns_buffer_read_u32
12
13

SYNOPSIS

15       #ifdef HAVE_STDINT_H
16       #include <stdint.h>
17       #endif /* HAVE_STDINT_H */
18
19       #ifdef HAVE_STDBOOL_H
20       #include <stdbool.h>
21       #endif /* HAVE_STDBOOL_H */
22
23       #include <ldns/ldns.h>
24
25       void ldns_buffer_write_at(ldns_buffer *buffer, size_t  at,  const  void
26       *data, size_t count);
27
28       void  ldns_buffer_write_at(ldns_buffer  *buffer,  size_t at, const void
29       *data, size_t count);
30
31       void ldns_buffer_write(ldns_buffer *buffer, const  void  *data,  size_t
32       count);
33
34       void  ldns_buffer_write_string_at(ldns_buffer *buffer, size_t at, const
35       char *str);
36
37       void ldns_buffer_write_string(ldns_buffer *buffer, const char *str);
38
39       void ldns_buffer_write_u8_at(ldns_buffer *buffer,  size_t  at,  uint8_t
40       data);
41
42       void ldns_buffer_write_u8(ldns_buffer *buffer, uint8_t data);
43
44       void  ldns_buffer_write_u16_at(ldns_buffer *buffer, size_t at, uint16_t
45       data);
46
47       void ldns_buffer_write_u16(ldns_buffer *buffer, uint16_t data);
48
49       void ldns_buffer_read_at(ldns_buffer *buffer, size_t  at,  void  *data,
50       size_t count);
51
52       void ldns_buffer_read(ldns_buffer *buffer, void *data, size_t count);
53
54       uint8_t ldns_buffer_read_u8_at(ldns_buffer *buffer, size_t at);
55
56       uint8_t ldns_buffer_read_u8(ldns_buffer *buffer);
57
58       uint16_t ldns_buffer_read_u16_at(ldns_buffer *buffer, size_t at);
59
60       uint16_t ldns_buffer_read_u16(ldns_buffer *buffer);
61
62       uint32_t ldns_buffer_read_u32_at(ldns_buffer *buffer, size_t at);
63
64       uint32_t ldns_buffer_read_u32(ldns_buffer *buffer);
65

DESCRIPTION

67       ldns_buffer_write_at() writes the given data to the buffer at the spec‐
68              ified position
69
70              at: the position (in number of bytes) to write the data at
71              data: pointer to the data to write to the buffer
72              count: the number of bytes of data to write
73
74       ldns_buffer_write_at() writes the given data to the buffer at the spec‐
75              ified position
76
77              at: the position (in number of bytes) to write the data at
78              data: pointer to the data to write to the buffer
79              count: the number of bytes of data to write
80
81       ldns_buffer_write()  writes count bytes of data to the current position
82              of the buffer
83
84       ldns_buffer_write_string_at() copies the given (null-delimited)  string
85              to the specified position at the buffer
86
87       ldns_buffer_write_string()  copies the given (null-delimited) string to
88              the current position at the buffer
89
90       ldns_buffer_write_u8_at() writes the given byte of data  at  the  given
91              position in the buffer
92
93       ldns_buffer_write_u8()  writes  the  given  byte of data at the current
94              position in the buffer
95
96       ldns_buffer_write_u16_at() writes the given 2 byte integer at the given
97              position in the buffer
98
99       ldns_buffer_write_u16()  writes the given 2 byte integer at the current
100              position in the buffer
101
102       ldns_buffer_read_at() copies count bytes of data at the given  position
103              to the given data-array
104
105       ldns_buffer_read()  copies  count bytes of data at the current position
106              to the given data-array
107
108       ldns_buffer_read_u8_at() returns the byte value at the  given  position
109              in the buffer
110
111       ldns_buffer_read_u8() returns the byte value at the current position in
112              the buffer
113
114       ldns_buffer_read_u16_at() returns the 2-byte integer value at the given
115              position in the buffer
116
117       ldns_buffer_read_u16()  returns the 2-byte integer value at the current
118              position in the buffer
119
120       ldns_buffer_read_u32_at() returns the 4-byte integer value at the given
121              position in the buffer
122
123       ldns_buffer_read_u32()  returns the 4-byte integer value at the current
124              position in the buffer
125

AUTHOR

127       The ldns team at NLnet Labs. Which consists out of: Jelte Jansen,  Erik
128       Rozendaal and Miek Gieben.
129
130

REPORTING BUGS

132       Please  report  bugs  to  ldns-team@nlnetlabs.nl  or in our Bugzilla at
133       http://www.nlnetlabs.nl/bugs/index.html
134
135       Be sure to select ldns as the product.
136
137
139       Copyright (c) 2004, 2005 NLnet Labs.  Licensed under the  BSD  License.
140       There  is  NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A
141       PARTICULAR PURPOSE.
142

SEE ALSO

144       perldoc Net::DNS, RFC1043, RFC1035, RFC4033, RFC4034 and RFC4035.
145

REMARKS

147       This manpage was automaticly generated from the ldns source code by use
148       of Doxygen and some perl.
149
150
151
152                                                             ldns(25 Apr 2005)
Impressum