ldns_b64_pton_calculate_size(3)

ldns_b64_pton_calculate_size3

Return size needed for b32 or b64 encoded or decoded data

Usage

#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);

Overview

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

Remarks

This manpage was automatically generated from the ldns source code.

Releases

6 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9–10
  2. 11–12
  3. 13
  4. Arch

Author

The ldns team at NLnet Labs.

Reporting bugs

Please report bugs to [email protected] or on GitHub at https://github.com/NLnetLabs/ldns/issues

From ldns 1.9.2-1 in Arch Linux 2026-11-07. Parsed by carta from the page's man source.