Base16 Class
Namespace: Yubico.Core.Buffers Assembly: Yubico.Core.dllClass for encoding and decoding bytes into base-16 encoded text, otherwise known as hexadecimal.
public class Base16 : Object, ITextEncoding
Implements
Remarks
This base class is a fully functional encoder/decoder for base-16, also known as hexadecimal. The class Hex is an alias so that code using that class can continue unmodified. New code should use this class.
See RFC4648 for details (https://datatracker.ietf.org/doc/html/rfc4648) on base-16.
Constructors
Name | Description |
---|---|
Base16() |
Properties
Name | Description |
---|---|
CharacterSet | The set of characters that correspond to numbers 0 - 16. |
DefaultLowerCase | Indicates the default case of characters for this encoding. |
Methods
Name | Description |
---|---|
Decode(ReadOnlySpan<Char>, Span<Byte>) | Decode the string into |
Decode(String) | Decode the string into a byte array. |
DecodeText(ReadOnlySpan<Char>, Span<Byte>) | Decode the string into |
DecodeText(String) | Decode the string into a byte array. |
Encode(ReadOnlySpan<Byte>) | Encode the byte collection into a string representation. |
Encode(ReadOnlySpan<Byte>, Span<Char>) | Encode the byte collection into |
EncodeBytes(ReadOnlySpan<Byte>) | Encode the byte collection into a string representation. |
EncodeBytes(ReadOnlySpan<Byte>, Span<Char>) | Encode the byte collection into |