BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJLIB-UTIL Reference

base64.h File Reference

Base64 encoding and decoding. More...

Go to the source code of this file.

Macros

#define PJ_BASE256_TO_BASE64_LEN(len)   (len * 4 / 3 + 3)
 
#define PJ_BASE64_TO_BASE256_LEN(len)   (len * 3 / 4)
 

Functions

pj_status_t pj_base64_encode (const pj_uint8_t *input, int in_len, char *output, int *out_len)
 
pj_status_t pj_base64_decode (const pj_str_t *input, pj_uint8_t *out, int *out_len)
 

Detailed Description

Base64 encoding and decoding.

 


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.