Base64Url.EncodeToString(ReadOnlySpan<Byte>) Method
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
- source
- ReadOnlySpan<Byte>
The input span which contains binary data that needs to be encoded.
A string which contains the result of the operation, i.e. the ASCII string in Base64Url.
This implementation of the base64url encoding omits the optional padding characters.
Product | Versions |
---|---|
.NET | 8 (package-provided), 9, 10 |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: