EncodeBase64 overloads

Synopses

Declared in <util/strencodings.h>

Base64 encode the given string.

std::string
EncodeBase64(std::string_view str);

Base64 encode the given bytes.

std::string
EncodeBase64(std::span<std::byte const> input);

Base64 encode the given bytes.

std::string
EncodeBase64(std::span<unsigned char const> input);

Return Value

  • The base64 encoding of str.

  • The base64 encoding of input.

Parameters

Name

Description

str

The text to encode.

input

The bytes to encode.

Created with MrDocs