RadixCodec Class

Represents a radix value codec for conversion of base-10 integer values to and from other base values.

Definition

Namespace: Gemstone.Numeric
Assembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.128 -- Release Build+8719af24b83815a59535b3885622cedd021e9c5b
public class RadixCodec
Inheritance
Object    RadixCodec

Remarks

The primary use case of this class is to provide compact string encodings of integer values. The encodings produced by this class do not manage arbitrary sized bytes arrays, nor do they include padding - as a result, encodings are not intended to comply with RFC 3548.

Constructors

RadixCodec Creates a new RadixCodec.

Methods

Decode(Type, String) Converts a radix value to an integer value.
DecodeT(String) Converts a radix value to an integer value.
Encode(Int16) Converts integer value to a radix value.
Encode(Int24) Converts integer value to a radix value.
Encode(Int32) Converts integer value to a radix value.
Encode(Int64) Converts integer value to a radix value.
Encode(UInt16) Converts integer value to a radix value.
Encode(UInt24) Converts integer value to a radix value.
Encode(UInt32) Converts integer value to a radix value.
Encode(UInt64) Converts integer value to a radix value.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryDecode(String, Int24) Attempts to convert a radix value to an integer value.
TryDecode(String, UInt24) Attempts to convert a radix value to an integer value.
TryDecode(String, Int16) Attempts to convert a radix value to an integer value.
TryDecode(String, Int32) Attempts to convert a radix value to an integer value.
TryDecode(String, Int64) Attempts to convert a radix value to an integer value.
TryDecode(String, UInt16) Attempts to convert a radix value to an integer value.
TryDecode(String, UInt32) Attempts to convert a radix value to an integer value.
TryDecode(String, UInt64) Attempts to convert a radix value to an integer value.

Fields

Digits Defines the available digits for a radix value codec.
Radix16 Gets a radix-16 value (hex) encoding.
Radix2 Gets a radix-2 value (binary) encoding.
Radix32 Gets a radix-32 value encoding.
Radix36 Gets a radix-36 value encoding.
Radix64 Gets a radix-64 value encoding.
Radix8 Gets a radix-8 value (octal) encoding.
Radix86 Gets a radix-86 value encoding.

See Also