Edit

Share via


Base64Url Class

Definition

Converts between binary data and URL-safe ASCII encoded text that's represented in Base64Url characters.

public ref class Base64Url abstract sealed
public static class Base64Url
type Base64Url = class
Public Class Base64Url
Inheritance
Base64Url

Methods

DecodeFromChars(ReadOnlySpan<Char>, Span<Byte>, Int32, Int32, Boolean)

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

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

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

DecodeFromChars(ReadOnlySpan<Char>)

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

DecodeFromUtf8(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32, Boolean)

Decodes the span of UTF-8 encoded text represented as Base64Url into binary data.

DecodeFromUtf8(ReadOnlySpan<Byte>, Span<Byte>)

Decodes the span of UTF-8 encoded text represented as Base64Url into binary data.

DecodeFromUtf8(ReadOnlySpan<Byte>)

Decodes the span of UTF-8 encoded text represented as Base64Url into binary data.

DecodeFromUtf8InPlace(Span<Byte>)

Decodes the span of UTF-8 encoded text in Base64Url into binary data, in-place.

The decoded binary output is smaller than the text data contained in the input (the operation deflates the data).

EncodeToChars(ReadOnlySpan<Byte>, Span<Char>, Int32, Int32, Boolean)

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

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

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

EncodeToChars(ReadOnlySpan<Byte>)

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

EncodeToString(ReadOnlySpan<Byte>)

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

EncodeToUtf8(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32, Boolean)

Encodes the span of binary data into UTF-8 encoded text represented as Base64Url.

EncodeToUtf8(ReadOnlySpan<Byte>, Span<Byte>)

Encodes the span of binary data into UTF-8 encoded text represented as Base64Url.

EncodeToUtf8(ReadOnlySpan<Byte>)

Encodes the span of binary data into UTF-8 encoded text represented as Base64Url.

GetEncodedLength(Int32)

Returns the length (in bytes) of the result if you were to encode binary data within a byte span of size bytesLength.

GetMaxDecodedLength(Int32)

Returns the maximum length (in bytes) of the result if you were to decode base 64 encoded text from a span of size base64Length.

IsValid(ReadOnlySpan<Byte>, Int32)

Validates that the specified span of UTF-8 text is comprised of valid base-64 encoded data.

IsValid(ReadOnlySpan<Byte>)

Validates that the specified span of UTF-8 text is comprised of valid base-64 encoded data.

IsValid(ReadOnlySpan<Char>, Int32)

Validates that the specified span of text is comprised of valid base-64 encoded data.

IsValid(ReadOnlySpan<Char>)

Validates that the specified span of text is comprised of valid base-64 encoded data.

TryDecodeFromChars(ReadOnlySpan<Char>, Span<Byte>, Int32)

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

TryDecodeFromUtf8(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Decodes the span of UTF-8 encoded text represented as Base64Url into binary data.

TryEncodeToChars(ReadOnlySpan<Byte>, Span<Char>, Int32)

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

TryEncodeToUtf8(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Encodes the span of binary data into UTF-8 encoded chars represented as Base64Url.

TryEncodeToUtf8InPlace(Span<Byte>, Int32, Int32)

Encodes the span of binary data (in-place) into UTF-8 encoded text represented as base 64.

The encoded text output is larger than the binary data contained in the input (the operation inflates the data).

Applies to