Show / Hide Table of Contents

Class Uint16

Derived UInt class for serializing/deserializing 16 bit UInt

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

Constructors

| Edit this page View Source

Uint16(byte)

create instance of this value

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

byte value

| Edit this page View Source

Uint16(ushort)

create instance of this value

Declaration
public Uint16(ushort value)
Parameters
Type Name Description
ushort value

ushort value

Methods

| Edit this page View Source

FromJson(JsonNode)

Deserialize Uint16

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

json token

Returns
Type Description
Uint16

Uint16 value

| Edit this page View Source

FromParser(BinaryParser, int?)

Construct a Uint16 from a BinaryParser

Declaration
public static Uint16 FromParser(BinaryParser parser, int? hint = null)
Parameters
Type Name Description
BinaryParser parser

A BinaryParser to read Uint16 from

int? hint
Returns
Type Description
Uint16
| Edit this page View Source

FromValue(int)

create instance of this value

Declaration
public static Uint16 FromValue(int v)
Parameters
Type Name Description
int v

int value

Returns
Type Description
Uint16
| Edit this page View Source

ToBytes()

convert to bytes array

Declaration
public override byte[] ToBytes()
Returns
Type Description
byte[]
Overrides
Uint<ushort>.ToBytes()

Operators

| Edit this page View Source

implicit operator Uint16(ushort)

create instance of this value

Declaration
public static implicit operator Uint16(ushort v)
Parameters
Type Name Description
ushort v

ushort value

Returns
Type Description
Uint16

Implements

ISerializedType

Extension Methods

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