Class Uint64
Derived UInt class for serializing/deserializing 64 bit UInt
Implements
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class Uint64 : Uint<ulong>, ISerializedType
Constructors
| Improve this Doc View SourceUint64(Byte)
create instance of this value
Declaration
public Uint64(byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | byte value |
Uint64(UInt64)
create instance of this value
Declaration
public Uint64(ulong value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | value | ulong value |
Methods
| Improve this Doc View SourceFromJson(JToken)
Deserialize Uint64
Declaration
public static Uint64 FromJson(JToken token)
Parameters
Type | Name | Description |
---|---|---|
JToken | token | json token |
Returns
Type | Description |
---|---|
Uint64 | Uint64 value |
FromParser(BinaryParser, Nullable<Int32>)
Construct a Uint64 from a BinaryParser
Declaration
public static Uint64 FromParser(BinaryParser parser, int? hint = null)
Parameters
Type | Name | Description |
---|---|---|
BinaryParser | parser | A BinaryParser to read Uint64 from |
System.Nullable<System.Int32> | hint |
Returns
Type | Description |
---|---|
Uint64 |
FromValue(Int32)
create instance of this value from string
Declaration
public static Uint64 FromValue(int v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | v |
Returns
Type | Description |
---|---|
Uint64 |
FromValue(String)
create instance of this value from string
Declaration
public static Uint64 FromValue(string v)
Parameters
Type | Name | Description |
---|---|---|
System.String | v |
Returns
Type | Description |
---|---|
Uint64 |
ToBytes()
convert to bytes array
Declaration
public override byte[] ToBytes()
Returns
Type | Description |
---|---|
System.Byte[] |
Overrides
Xrpl.BinaryCodec.Types.Uint<System.UInt64>.ToBytes()
|
Improve this Doc
View Source
ToJson()
Get the JSON representation of this type
Declaration
public override JToken ToJson()
Returns
Type | Description |
---|---|
JToken |
Overrides
Xrpl.BinaryCodec.Types.Uint<System.UInt64>.ToJson()
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Xrpl.BinaryCodec.Types.Uint<System.UInt64>.ToString()
Operators
| Improve this Doc View SourceImplicit(Byte to Uint64)
create instance of this value
Declaration
public static implicit operator Uint64(byte v)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | v | byte value |
Returns
Type | Description |
---|---|
Uint64 |
Implicit(UInt64 to Uint64)
Declaration
public static implicit operator Uint64(ulong v)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | v |
Returns
Type | Description |
---|---|
Uint64 |