Edit

Share via


Base64Url.GetEncodedLength(Int32) Method

Definition

Returns the length (in bytes) of the result if you were to encode binary data within a byte span of size bytesLength.

public:
 static int GetEncodedLength(int bytesLength);
public static int GetEncodedLength (int bytesLength);
static member GetEncodedLength : int -> int
Public Shared Function GetEncodedLength (bytesLength As Integer) As Integer

Parameters

bytesLength
Int32

The size of the input span.

Returns

The length (in bytes) of the encoded result.

Exceptions

bytesLength is less than 0 or greater than 1610612733.

Applies to