For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
b64encode
def b64encode(input_bytes: Span[UInt8], 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[UInt8]): The input string buffer. - result (
String): The string in which to store the values.
def b64encode(input_string: StringSlice) -> String
Performs base64 encoding on the input string.
Args:
- input_string (
StringSlice): The input string buffer.
Returns:
String: The ASCII base64 encoded string.
def b64encode(input_bytes: Span[UInt8]) -> String
Performs base64 encoding on the input string.
Args:
- input_bytes (
Span[UInt8]): The input string buffer.
Returns:
String: The ASCII base64 encoded string.