Base64GetBytes(ReadOnlySpanChar, Base64ParserOptions) Method

Converts a Base64-encoded read-only character span into a corresponding Byte array and allows to pass options for the conversion.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.3+0b4e3cc14d7870504a77e224d298b921bfc6f2ee
C#
public static byte[] GetBytes(
	ReadOnlySpan<char> base64,
	Base64ParserOptions options
)

Parameters

base64  ReadOnlySpanChar
The read-only character span to convert.
options  Base64ParserOptions
Options for the conversion.

Return Value

Byte
A Byte array decoded from base64.

Exceptions

FormatExceptionDepending on the conversion options specified with options, base64 cannot be converted into a Byte array .

See Also