Base64Encode(ReadOnlySpanByte, 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.3+0b4e3cc14d7870504a77e224d298b921bfc6f2ee
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.