#[no_mangle]
pub unsafe extern "C" fn Encode(
input: *const u8,
input_length: usize,
output: *mut u8,
output_length: usize
) -> i64
Encode a byte array to a base64 string.
- input - Pointer to the buffer to encode.
- input_length - Length of the buffer to encode.
- output - Pointer to the output buffer.
- output_length - Length of the output buffer.
Returns the size, in bytes, of the output buffer.