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

NAME

6       ldns_b32_ntop_calculate_size, ldns_b32_pton_calculate_size,
7       ldns_b64_ntop_calculate_size, ldns_b64_pton_calculate_size - return
8       size needed for b32 or b64 encoded or decoded data
9
10

SYNOPSIS

12       #include <stdint.h>
13       #include <stdbool.h>
14
15       #include <ldns/ldns.h>
16
17       size_t ldns_b32_ntop_calculate_size(size_t src_data_length);
18
19       size_t ldns_b32_pton_calculate_size(size_t src_text_length);
20
21       static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize){
22       return ((((srcsize + 2) / 3) * 4) + 1);
23
24       static inline size_t ldns_b64_pton_calculate_size(size_t srcsize){
25       return (((((srcsize + 3) / 4) * 3)) + 1);
26

DESCRIPTION

28       ldns_b32_ntop_calculate_size() calculates the size needed to store the
29              result of b32_ntop
30
31       ldns_b32_pton_calculate_size() calculates the size needed to store the
32              result of b32_pton
33
34       ldns_b64_ntop_calculate_size() calculates the size needed to store the
35              result of b64_ntop
36
37       ldns_b64_pton_calculate_size() calculates the size needed to store the
38              result of ldns_b64_pton
39

AUTHOR

41       The ldns team at NLnet Labs. Which consists out of Jelte Jansen and
42       Miek Gieben.
43
44

REPORTING BUGS

46       Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
47       http://www.nlnetlabs.nl/bugs/index.html
48
49
51       Copyright (c) 2004 - 2006 NLnet Labs.
52
53       Licensed under the BSD License. There is NO warranty; not even for MER‐
54       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
55

SEE ALSO

57       perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
58

REMARKS

60       This manpage was automatically generated from the ldns source code by
61       use of Doxygen and some perl.
62
63
64
65                                  30 May 2006                          ldns(3)
Impressum