Edit

Share via


Base64.GetMaxDecodedFromUtf8Length(Int32) Method

Definition

Returns the maximum length (in bytes) of the result if you were to decode base-64 encoded text within a byte span with the specified length.

public:
 static int GetMaxDecodedFromUtf8Length(int length);
public static int GetMaxDecodedFromUtf8Length (int length);
static member GetMaxDecodedFromUtf8Length : int -> int
Public Shared Function GetMaxDecodedFromUtf8Length (length As Integer) As Integer

Parameters

length
Int32

The size of the byte span.

Returns

The maximum length (in bytes) of the result.

Exceptions

length is less than 0.

Applies to