SIMPLE SOLUTIONS

LDNS_B32_NTOP_CALCULATE_SIZE(3) - Linux man page online | Library functions

Chapter
30 May 2006
ldns(3) Library Functions Manual ldns(3)

NAME

ldns_b32_ntop_calculate_size, ldns_b32_pton_calculate_size, ldns_b64_ntop_calculate_size, ldns_b64_pton_calculate_size - return size needed for b32 or b64 encoded or decoded data

SYNOPSIS

#include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> size_t ldns_b32_ntop_calculate_size(size_t src_data_length); size_t ldns_b32_pton_calculate_size(size_t src_text_length); static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize){ return ((((srcsize + 2) / 3) * 4) + 1); static inline size_t ldns_b64_pton_calculate_size(size_t srcsize){ return (((((srcsize + 3) / 4) * 3)) + 1);

DESCRIPTION

ldns_b32_ntop_calculate_size() calculates the size needed to store the result of b32_ntop ldns_b32_pton_calculate_size() calculates the size needed to store the result of b32_pton ldns_b64_ntop_calculate_size() calculates the size needed to store the result of b64_ntop ldns_b64_pton_calculate_size() calculates the size needed to store the result of ldns_b64_pton

AUTHOR

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

REPORTING BUGS

Please report bugs to @nlnetlabs.nl or in our bugzilla at http://www.nlnet‐ labs.nl/bugs/index.html
Copyright (c) 2004 - 2006 NLnet Labs. Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FIT‐ NESS FOR A PARTICULAR PURPOSE.

SEE ALSO

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

REMARKS

This manpage was automatically generated from the ldns source code by use of Doxygen and some perl.
30 May 2006 ldns(3)
Download raw manual
Main page Library Functions Manual (+5028) № 3 (+68044)
Go top