Show / Hide Table of Contents

Class Uint8

Derived UInt class for serializing/deserializing 8 bit UInt

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

Constructors

| Edit this page View Source

Uint8(byte)

create instance of this value

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

byte value

Methods

| Edit this page View Source

FromJson(JsonNode)

Deserialize Uint8

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

json token

Returns
Type Description
Uint8

Uint8 value

| Edit this page View Source

FromParser(BinaryParser, int?)

Construct a Uint8 from a BinaryParser

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

A BinaryParser to read Uint8 from

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

FromValue(int)

create instance of this value

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

int value

Returns
Type Description
Uint8
| Edit this page View Source

ToBytes()

convert to bytes array

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

Operators

| Edit this page View Source

implicit operator Uint8(byte)

create instance of this value

Declaration
public static implicit operator Uint8(byte v)
Parameters
Type Name Description
byte v

byte value

Returns
Type Description
Uint8

Implements

ISerializedType

Extension Methods

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