Repository navigation
OnixLabs.Core.Text
The OnixLabs.Core.Text namespace provides strongly typed Base-N value types, the codecs and format providers that encode and decode them, and text-oriented extension methods.
| Namespace | OnixLabs.Core.Text |
| Assembly | OnixLabs.Core.dll (NuGet) |
The Base16, Base32, Base58, and Base64 types wrap binary data as an immutable, strongly typed text value with value semantics, so an encoded string is modelled as a distinct type rather than a bare string. Each value type parses and formats through a corresponding codec and format providers, which perform the actual Base-N encode and decode and honour a format string. The extension methods augment common text and binary BCL types — Encoding, ReadOnlySpan<byte>, and StringBuilder.
Bring the namespace into scope with using OnixLabs.Core.Text;.
| Type | Description |
|---|---|
| Base16 | Strongly typed Base-16 (hexadecimal) value. |
| Base32 | Strongly typed Base-32 value. |
| Base58 | Strongly typed Base-58 value. |
| Base64 | Strongly typed Base-64 value. |
| Type | Description |
|---|---|
| IBaseCodec | Base-N codec contract (encode/decode). |
| IBaseValue | Non-generic Base-N value contract. |
| IBaseValue<T> | Generic Base-N value contract. |
| Type | Description |
|---|---|
| Base16Codec | Base-16 codec. |
| Base32Codec | Base-32 codec. |
| Base58Codec | Base-58 codec. |
| Base64Codec | Base-64 codec. |
| Type | Description |
|---|---|
| Base16FormatProvider | Base-16 format provider. |
| Base32FormatProvider | Base-32 format provider. |
| Base58FormatProvider | Base-58 format provider. |
| Base64FormatProvider | Base-64 format provider. |
| Type | Description |
|---|---|
| EncodingExtensions | Extensions for Encoding. |
| ReadOnlySpanExtensions | Base-N conversion extensions for ReadOnlySpan<byte>. |
| StringBuilderExtensions | Extensions for StringBuilder. |
ONIXLabs .NET Library · Repository · NuGet · License (Apache-2.0)
Copyright © ONIXLabs 2020. Licensed under the Apache License, Version 2.0.
- Enumeration<T>
- Optional<T>
- OptionalEqualityComparer<T>
- OptionalExtensions
- Result
- Result<T>
- ResultEqualityComparer<T>
- ResultExtensions
- Specification<T>
- Preconditions
- IValueEquatable<T>
- IValueComparable<T>
- IBinaryConvertible
- ISpanBinaryConvertible
- IMemoryBinaryConvertible
- ArrayExtensions
- ComparableExtensions
- DateTimeExtensions
- ISpanParsableExtensions
- ObjectExtensions
- RandomExtensions
- ReadOnlySequenceExtensions
- ReadOnlySpanExtensions
- StringExtensions
- Base16
- Base32
- Base58
- Base64
- IBaseCodec
- IBaseValue
- IBaseValue<T>
- Base16Codec
- Base32Codec
- Base58Codec
- Base64Codec
- Base16FormatProvider
- Base32FormatProvider
- Base58FormatProvider
- Base64FormatProvider
- EncodingExtensions
- ReadOnlySpanExtensions
- StringBuilderExtensions
- BigDecimal
- BigDecimalEqualityComparer
- BigDecimalOrdinalityComparer
- NumberInfo
- NumberInfoEqualityComparer
- NumberInfoOrdinalityComparer
- Int256
- Int512
- UInt256
- UInt512
- Float128
- Float256
- GenericMath
- NumericsExtensions
- ConversionMode
- ScaleMode
- Hash
- NamedHash
- Sha3
- Sha3Hash224
- Sha3Hash256
- Sha3Hash384
- Sha3Hash512
- Sha3Shake128
- Sha3Shake256
- MerkleTree
- MerkleTree<T>
- PrivateKey
- PublicKey
- NamedPrivateKey
- NamedPublicKey
- EcdhPrivateKey
- EcdhPublicKey
- EcdsaPrivateKey
- EcdsaPublicKey
- EddsaPrivateKey
- EddsaPublicKey
- RsaPrivateKey
- RsaPublicKey
- DigitalSignature
- DigitalSignatureAndPublicKey
- Salt
- Secret
- ICryptoPrimitive<T>
- IHashable
- IEcdhPrivateKey
- IEcdsaPrivateKey
- IEddsaPrivateKey
- IRsaPrivateKey
- IPrivateKeyDerivable<T>
- IPrivateKeyExportable
- IPrivateKeyImportable<T>
- IPrivateKeyPemImportable<T>
- IPrivateKeyPkcs8Exportable
- IPrivateKeyPkcs8Importable<T>
- IPrivateKeyPkcs8PemExportable
- IPrivateKeyRawExportable
- IPrivateKeyRawImportable<T>
- IPrivateKeyRawPemExportable
- IEcdhPublicKey
- IEcdsaPublicKey
- IEddsaPublicKey
- IRsaPublicKey
- IPublicKeyExportable
- IPublicKeyImportable<T>
- IPublicKeyPemExportable
- IPublicKeyPemImportable<T>
- IPublicKeyRawExportable
- IPublicKeyRawImportable<T>
- HashAlgorithmExtensions
- ReadOnlySpanExtensions