Class Uint8
Derived UInt class for serializing/deserializing 8 bit UInt
Implements
Inherited Members
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class Uint8 : Uint<byte>, ISerializedType
Constructors
| Edit this page View SourceUint8(byte)
create instance of this value
Declaration
public Uint8(byte value)
Parameters
| Type | Name | Description |
|---|---|---|
| byte | value | byte value |
Methods
| Edit this page View SourceFromJson(JsonNode)
Deserialize Uint8
Declaration
public static Uint8 FromJson(JsonNode token)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonNode | token | json token |
Returns
| Type | Description |
|---|---|
| Uint8 | Uint8 value |
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 |
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 |
ToBytes()
convert to bytes array
Declaration
public override byte[] ToBytes()
Returns
| Type | Description |
|---|---|
| byte[] |
Overrides
Operators
| Edit this page View Sourceimplicit 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 |