BRL-CAD
Loading...
Searching...
No Matches
Collaboration diagram for Base64 Encoding and Decoding:

Functions

signed charbu_b64_encode (const signed char *input)
 
signed charbu_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)
extern

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 
)
extern

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 
)
extern

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 
)
extern

Decode length_in blocks in b64 array input to output_buffer.

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