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

DESCRIPTION

62       ldns_buffer_write_at() writes the given data to the buffer at the spec‐
63              ified position
64              buffer: the buffer
65              at: the position (in number of bytes) to write the data at
66              data: pointer to the data to write to the buffer
67              count: the number of bytes of data to write
68
69       ldns_buffer_write_at() writes the given data to the buffer at the spec‐
70              ified position
71              buffer: the buffer
72              at: the position (in number of bytes) to write the data at
73              data: pointer to the data to write to the buffer
74              count: the number of bytes of data to write
75
76       ldns_buffer_write()  writes count bytes of data to the current position
77              of the buffer
78              buffer: the buffer
79              data: the data to write
80              count: the lenght of the data to write
81
82       ldns_buffer_write_string_at() copies the given (null-delimited)  string
83              to the specified position at the buffer
84              buffer: the buffer
85              at: the position in the buffer
86              str: the string to write
87
88       ldns_buffer_write_string()  copies the given (null-delimited) string to
89              the current position at the buffer
90              buffer: the buffer
91              str: the string to write
92
93       ldns_buffer_write_u8_at() writes the given byte of data  at  the  given
94              position in the buffer
95              buffer: the buffer
96              at: the position in the buffer
97              data: the 8 bits to write
98
99       ldns_buffer_write_u8()  writes  the  given  byte of data at the current
100              position in the buffer
101              buffer: the buffer
102              data: the 8 bits to write
103
104       ldns_buffer_write_u16_at() writes the given 2 byte integer at the given
105              position in the buffer
106              buffer: the buffer
107              at: the position in the buffer
108              data: the 16 bits to write
109
110       ldns_buffer_write_u16()  writes the given 2 byte integer at the current
111              position in the buffer
112              buffer: the buffer
113              data: the 16 bits to write
114
115       ldns_buffer_read_at() copies count bytes of data at the given  position
116              to the given data-array
117              buffer: the buffer
118              at: the position in the buffer to start
119              data: buffer to copy to
120              count: the length of the data to copy
121
122       ldns_buffer_read()  copies  count bytes of data at the current position
123              to the given data-array
124              buffer: the buffer
125              data: buffer to copy to
126              count: the length of the data to copy
127
128       ldns_buffer_read_u8_at() returns the byte value at the  given  position
129              in the buffer
130              buffer: the buffer
131              at: the position in the buffer
132              Returns 1 byte integer
133
134       ldns_buffer_read_u8() returns the byte value at the current position in
135              the buffer
136              buffer: the buffer
137              Returns 1 byte integer
138
139       ldns_buffer_read_u16_at() returns the 2-byte integer value at the given
140              position in the buffer
141              buffer: the buffer
142              at: position in the buffer
143              Returns 2 byte integer
144
145       ldns_buffer_read_u16()  returns the 2-byte integer value at the current
146              position in the buffer
147              buffer: the buffer
148              Returns 2 byte integer
149
150       ldns_buffer_read_u32_at() returns the 4-byte integer value at the given
151              position in the buffer
152              buffer: the buffer
153              at: position in the buffer
154              Returns 4 byte integer
155
156       ldns_buffer_read_u32()  returns the 4-byte integer value at the current
157              position in the buffer
158              buffer: the buffer
159              Returns 4 byte integer
160

AUTHOR

162       The ldns team at NLnet Labs. Which consists out  of  Jelte  Jansen  and
163       Miek Gieben.
164
165

REPORTING BUGS

167       Please  report  bugs  to  ldns-team@nlnetlabs.nl  or in our bugzilla at
168       http://www.nlnetlabs.nl/bugs/index.html
169
170
172       Copyright (c) 2004 - 2006 NLnet Labs.
173
174       Licensed under the BSD License. There is NO warranty; not even for MER‐
175       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
176
177

SEE ALSO

179       ldns_buffer.   And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034
180       and RFC4035.
181

REMARKS

183       This manpage was automaticly generated from the ldns source code by use
184       of Doxygen and some perl.
185
186
187
188                                  30 May 2006                          ldns(3)
Impressum