codex
Loading...
Searching...
No Matches
base64.h File Reference
#include <stddef.h>
#include <stdbool.h>
Include dependency graph for base64.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BASE64_LENGTH(inlen)   ((((inlen) + 2) / 3) * 4)
 

Functions

bool isbase64 (char ch)
 
void base64_encode (const char *in, size_t inlen, char *out, size_t outlen)
 
size_t base64_encode_alloc (const char *in, size_t inlen, char **out)
 
bool base64_decode (const char *in, size_t inlen, char *out, size_t *outlen)
 
bool base64_decode_alloc (const char *in, size_t inlen, char **out, size_t *outlen)
 

Macro Definition Documentation

◆ BASE64_LENGTH

#define BASE64_LENGTH ( inlen)    ((((inlen) + 2) / 3) * 4)

Function Documentation

◆ base64_decode()

bool base64_decode ( const char * in,
size_t inlen,
char * out,
size_t * outlen )
extern

◆ base64_decode_alloc()

bool base64_decode_alloc ( const char * in,
size_t inlen,
char ** out,
size_t * outlen )
extern

◆ base64_encode()

void base64_encode ( const char * in,
size_t inlen,
char * out,
size_t outlen )
extern

◆ base64_encode_alloc()

size_t base64_encode_alloc ( const char * in,
size_t inlen,
char ** out )
extern

◆ isbase64()

bool isbase64 ( char ch)
extern