[][src]Function devolutions_crypto::ffi::Encode

#[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.

Arguments

  • 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

Returns the size, in bytes, of the output buffer.