Class Uint<T>
Base class for serializing and deserializing unsigned integers.
Implements
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public abstract class Uint<T> : object, ISerializedType where T : struct, IConvertible
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceUint(T)
create instance of this integer value
Declaration
protected Uint(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value |
Fields
| Improve this Doc View SourceValue
integers value
Declaration
public readonly T Value
Field Value
Type | Description |
---|---|
T |
Methods
| Improve this Doc View SourceToBytes()
convert to bytes array
Declaration
public abstract byte[] ToBytes()
Returns
Type | Description |
---|---|
System.Byte[] |
ToBytes(IBytesSink)
to bytes Sink
Declaration
public void ToBytes(IBytesSink sink)
Parameters
Type | Name | Description |
---|---|---|
IBytesSink | sink | bytes Sink container |
ToJson()
Get the JSON representation of this type
Declaration
public virtual JToken ToJson()
Returns
Type | Description |
---|---|
JToken |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |