Skip to main content Skip to main content
Pigweed's logo Pigweed
  1. Home
  2. Reference
  3. Rust
  4. pw_base64
  5. encode

encode

Function encode 

Source
pub fn encode(input: &[u8], output: &mut [u8]) -> Result<usize>
Expand description

Encode input as base64 into the output_buffer.

Returns the number of bytes written to output_buffer on success or Error::OutOfRange if output_buffer is not large enough.