Base64Url.EncodeToString(ReadOnlySpan<Byte>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將二進位數據的範圍編碼為以Base64Url ASCII字元表示的 Unicode 字串。
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>
輸入範圍,其中包含需要編碼的二進位數據。
傳回
字串,其中包含作業的結果,也就是Base64Url中的ASCII字串。
備註
base64url 編碼的這個實作會省略選擇性填補字元。