Show / Hide Table of Contents

Class Uint64

Derived UInt class for serializing/deserializing 64 bit UInt

Inheritance
object
Uint<ulong>
Uint64
Implements
ISerializedType
Inherited Members
Uint<ulong>.Value
Uint<ulong>.ToBytes(IBytesSink)
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class Uint64 : Uint<ulong>, ISerializedType

Constructors

| Edit this page View Source

Uint64(byte)

create instance of this value

Declaration
public Uint64(byte value)
Parameters
Type Name Description
byte value

byte value

| Edit this page View Source

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 Source

FromJson(JsonNode)

Deserialize Uint64 from JSON

Declaration
public static Uint64 FromJson(JsonNode token)
Parameters
Type Name Description
JsonNode token

json token - decimal digit-only strings, 0x-prefixed hex, or bare hex (fixtures / rippled may omit the prefix)

Returns
Type Description
Uint64

Uint64 value

| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

ToBytes()

convert to bytes array

Declaration
public override byte[] ToBytes()
Returns
Type Description
byte[]
Overrides
Uint<ulong>.ToBytes()
| Edit this page View Source

ToJson()

Get the JSON representation of this type

Declaration
public override JsonNode ToJson()
Returns
Type Description
JsonNode
Overrides
Uint<ulong>.ToJson()
| Edit this page View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
Uint<ulong>.ToString()

Operators

| Edit this page View Source

implicit 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
| Edit this page View Source

implicit operator Uint64(ulong)

Declaration
public static implicit operator Uint64(ulong v)
Parameters
Type Name Description
ulong v
Returns
Type Description
Uint64

Implements

ISerializedType

Extension Methods

StExtensions.ToDebuggedHex(ISerializedType)
StExtensions.ToHex(ISerializedType)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX