Dela via


WebEncoders.Base64UrlEncode Method

Definition

Overloads

Base64UrlEncode(Byte[])

Encodes input using base64url encoding.

Base64UrlEncode(ReadOnlySpan<Byte>)

Encodes input using base64url encoding.

Base64UrlEncode(ReadOnlySpan<Byte>, Span<Char>)

Encodes input using base64url encoding.

Base64UrlEncode(Byte[], Int32, Int32)

Encodes input using base64url encoding.

Base64UrlEncode(Byte[], Int32, Char[], Int32, Int32)

Encodes input using base64url encoding.

Base64UrlEncode(Byte[])

Source:
WebEncoders.cs

Encodes input using base64url encoding.

public:
 static System::String ^ Base64UrlEncode(cli::array <System::Byte> ^ input);
public static string Base64UrlEncode (byte[] input);
static member Base64UrlEncode : byte[] -> string
Public Shared Function Base64UrlEncode (input As Byte()) As String

Parameters

input
Byte[]

The binary input to encode.

Returns

The base64url-encoded form of input.

Applies to

Base64UrlEncode(ReadOnlySpan<Byte>)

Source:
WebEncoders.cs

Encodes input using base64url encoding.

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

Parameters

input
ReadOnlySpan<Byte>

The binary input to encode.

Returns

The base64url-encoded form of input.

Applies to

Base64UrlEncode(ReadOnlySpan<Byte>, Span<Char>)

Encodes input using base64url encoding.

public static int Base64UrlEncode (ReadOnlySpan<byte> input, Span<char> output);
static member Base64UrlEncode : ReadOnlySpan<byte> * Span<char> -> int
Public Shared Function Base64UrlEncode (input As ReadOnlySpan(Of Byte), output As Span(Of Char)) As Integer

Parameters

input
ReadOnlySpan<Byte>

The binary input to encode.

output
Span<Char>

The buffer to place the result in.

Returns

Applies to

Base64UrlEncode(Byte[], Int32, Int32)

Source:
WebEncoders.cs

Encodes input using base64url encoding.

public:
 static System::String ^ Base64UrlEncode(cli::array <System::Byte> ^ input, int offset, int count);
public static string Base64UrlEncode (byte[] input, int offset, int count);
static member Base64UrlEncode : byte[] * int * int -> string
Public Shared Function Base64UrlEncode (input As Byte(), offset As Integer, count As Integer) As String

Parameters

input
Byte[]

The binary input to encode.

offset
Int32

The offset into input at which to begin encoding.

count
Int32

The number of bytes from input to encode.

Returns

The base64url-encoded form of input.

Applies to

Base64UrlEncode(Byte[], Int32, Char[], Int32, Int32)

Source:
WebEncoders.cs

Encodes input using base64url encoding.

public:
 static int Base64UrlEncode(cli::array <System::Byte> ^ input, int offset, cli::array <char> ^ output, int outputOffset, int count);
public static int Base64UrlEncode (byte[] input, int offset, char[] output, int outputOffset, int count);
static member Base64UrlEncode : byte[] * int * char[] * int * int -> int
Public Shared Function Base64UrlEncode (input As Byte(), offset As Integer, output As Char(), outputOffset As Integer, count As Integer) As Integer

Parameters

input
Byte[]

The binary input to encode.

offset
Int32

The offset into input at which to begin encoding.

output
Char[]

Buffer to receive the base64url-encoded form of input. Array must be large enough to hold outputOffset characters and the full base64-encoded form of input, including padding characters.

outputOffset
Int32

The offset into output at which to begin writing the base64url-encoded form of input.

count
Int32

The number of bytes from input to encode.

Returns

The number of characters written to output, less any padding characters.

Applies to