Added calculation for encoded output size based on input size. Calculated size is never more than a byte larger than the actual size.
This commit is contained in:
1
external/libb64-1.2.1/include/b64/cencode.h
vendored
1
external/libb64-1.2.1/include/b64/cencode.h
vendored
@ -28,6 +28,7 @@ typedef struct
|
||||
|
||||
void base64_init_encodestate(base64_encodestate* state_in);
|
||||
|
||||
int base64_calc_buffer_length(int length_in, const base64_encodestate* state_in);
|
||||
|
||||
int base64_encode_block(const char* plaintext_in, int length_in, char* code_out, base64_encodestate* state_in);
|
||||
|
||||
|
Reference in New Issue
Block a user