Mojo function
b64encode
b64encode(input_bytes: Span[SIMD[uint8, 1], origin], mut result: String)
Performs base64 encoding on the input string.
Notes:
This method reserves the necessary capacity. result
can be a 0
capacity string.
Args:
- input_bytes (
Span[SIMD[uint8, 1], origin]
): The input string buffer. - result (
String
): The string in which to store the values.
b64encode(input_string: StringSlice[origin]) -> String
Performs base64 encoding on the input string.
Args:
- input_string (
StringSlice[origin]
): The input string buffer.
Returns:
The ASCII base64 encoded string.
b64encode(input_bytes: Span[SIMD[uint8, 1], origin]) -> String
Performs base64 encoding on the input string.
Args:
- input_bytes (
Span[SIMD[uint8, 1], origin]
): The input string buffer.
Returns:
The ASCII base64 encoded string.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!