BRL-CAD
Collaboration diagram for Base64 Encoding and Decoding:

Functions

signed char * bu_b64_encode (const signed char *input)
 
signed char * bu_b64_encode_block (const signed char *input, size_t length_in)
 
int bu_b64_decode (signed char **output_buffer, const signed char *input)
 
int bu_b64_decode_block (signed char **output_buffer, const signed char *input, size_t length_in)
 

Detailed Description

Functions for b64 encoding and decoding.

Function Documentation

◆ bu_b64_encode()

signed char * bu_b64_encode ( const signed char *  input)

Encode null terminated input char array to b64.

Caller is responsible for freeing memory allocated to hold output buffer.

◆ bu_b64_encode_block()

signed char * bu_b64_encode_block ( const signed char *  input,
size_t  length_in 
)

Encode length_in blocks in char array input to b64.

Caller is responsible for freeing memory allocated to hold output buffer.

◆ bu_b64_decode()

int bu_b64_decode ( signed char **  output_buffer,
const signed char *  input 
)

Decode null terminated b64 array to output_buffer.

Caller is responsible for freeing memory allocated to hold output buffer.

◆ bu_b64_decode_block()

int bu_b64_decode_block ( signed char **  output_buffer,
const signed char *  input,
size_t  length_in 
)

Decode length_in blocks in b64 array input to output_buffer.

Caller is responsible for freeing memory allocated to hold output buffer.