Edit

Share via


Base64Url.EncodeToString(ReadOnlySpan<Byte>) Method

Definition

Encodes the span of binary data into unicode string represented as Base64Url ASCII chars.

public:
 static System::String ^ EncodeToString(ReadOnlySpan<System::Byte> source);
public static string EncodeToString (ReadOnlySpan<byte> source);
static member EncodeToString : ReadOnlySpan<byte> -> string
Public Shared Function EncodeToString (source As ReadOnlySpan(Of Byte)) As String

Parameters

source
ReadOnlySpan<Byte>

The input span which contains binary data that needs to be encoded.

Returns

A string which contains the result of the operation, i.e. the ASCII string in Base64Url.

Remarks

This implementation of the base64url encoding omits the optional padding characters.

Applies to