Base64Encode(ReadOnlySpan`1Byte, Base64FormattingOptions) Method
Converts a read-only
Byte span to a corresponding Base64-encoded
string. Optional you can determine, whether line breaks are to be inserted into the
return value.
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static string Encode(
ReadOnlySpan<byte> bytes,
Base64FormattingOptions options = Base64FormattingOptions.None
)
Public Shared Function Encode (
bytes As ReadOnlySpan(Of Byte),
Optional options As Base64FormattingOptions = Base64FormattingOptions.None
) As String
public:
static String^ Encode(
ReadOnlySpan<unsigned char> bytes,
Base64FormattingOptions options = Base64FormattingOptions::None
)
static member Encode :
bytes : ReadOnlySpan<byte> *
?options : Base64FormattingOptions
(* Defaults:
let _options = defaultArg options Base64FormattingOptions.None
*)
-> string
- bytes ReadOnlySpanByte
- A read-only Byte span that contains the data to
encode.
- options Base64FormattingOptions (Optional)
- One of the enumeration values, which specify whether or not
line breaks are to be inserted into the return value. The default is
None.
StringThe Base64 string reprensentation of the elements in
bytes.