Edit

Share via


Base64Url.GetMaxDecodedLength(Int32) Method

Definition

Returns the maximum length (in bytes) of the result if you were to decode base 64 encoded text from a span of size base64Length.

public:
 static int GetMaxDecodedLength(int base64Length);
public static int GetMaxDecodedLength (int base64Length);
static member GetMaxDecodedLength : int -> int
Public Shared Function GetMaxDecodedLength (base64Length As Integer) As Integer

Parameters

base64Length
Int32

The size of the input span.

Returns

The maximum length (in bytes) of the decoded result.

Exceptions

The specified base64Length is less than 0.

Applies to