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
| Edit this page View SourceUint64(byte)
create instance of this value
Declaration
public Uint64(byte value)
Parameters
| Type | Name | Description |
|---|---|---|
| byte | value | byte value |
Uint64(ulong)
create instance of this value
Declaration
public Uint64(ulong value)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | value | ulong value |
Methods
| Edit this page View SourceFromJson(JsonNode)
Deserialize Uint64 from JSON without field context (hex string semantics, rippled default)
Declaration
public static Uint64 FromJson(JsonNode token)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonNode | token | json token - |
Returns
| Type | Description |
|---|---|
| Uint64 | Uint64 value |
FromJson(JsonNode, bool)
Deserialize Uint64 from JSON
Declaration
public static Uint64 FromJson(JsonNode token, bool baseTen)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonNode | token | json token |
| bool | baseTen | true for fields flagged kSmdBaseTen in rippled sfields.macro (decimal string JSON form); false for the default hex string form. Digit-only strings are ambiguous between the two, so only the field context can decide — mirrors rippled STUInt64 JSON handling. |
Returns
| Type | Description |
|---|---|
| Uint64 | Uint64 value |
FromParser(BinaryParser, int?)
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 |
| int? | hint |
Returns
| Type | Description |
|---|---|
| Uint64 |
FromValue(int)
create instance of this value from string
Declaration
public static Uint64 FromValue(int v)
Parameters
| Type | Name | Description |
|---|---|---|
| int | v |
Returns
| Type | Description |
|---|---|
| Uint64 |
FromValue(string)
create instance of this value from hex string
Declaration
public static Uint64 FromValue(string v)
Parameters
| Type | Name | Description |
|---|---|---|
| string | v |
Returns
| Type | Description |
|---|---|
| Uint64 |
ToBytes()
convert to bytes array
Declaration
public override byte[] ToBytes()
Returns
| Type | Description |
|---|---|
| byte[] |
Overrides
| Edit this page View SourceToJson()
Get the JSON representation of this type
Declaration
public override JsonNode ToJson()
Returns
| Type | Description |
|---|---|
| JsonNode |
Overrides
| Edit this page View SourceToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
Operators
| Edit this page View Sourceimplicit operator Uint64(byte)
create instance of this value
Declaration
public static implicit operator Uint64(byte v)
Parameters
| Type | Name | Description |
|---|---|---|
| byte | v | byte value |
Returns
| Type | Description |
|---|---|
| Uint64 |
implicit operator Uint64(ulong)
Declaration
public static implicit operator Uint64(ulong v)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | v |
Returns
| Type | Description |
|---|---|
| Uint64 |