Base64Url.EncodeToString(ReadOnlySpan<Byte>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.