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
| Improve this Doc View SourceUint8(Byte)
create instance of this value
Declaration
public Uint8(byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | byte value |
Methods
| Improve this Doc View SourceFromJson(JToken)
Deserialize Uint8
Declaration
public static Uint8 FromJson(JToken token)
Parameters
Type | Name | Description |
---|---|---|
JToken | token | json token |
Returns
Type | Description |
---|---|
Uint8 | Uint8 value |
FromParser(BinaryParser, Nullable<Int32>)
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 |
System.Nullable<System.Int32> | hint |
Returns
Type | Description |
---|---|
Uint8 |
FromValue(Int32)
create instance of this value
Declaration
public static Uint8 FromValue(int v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | v | int value |
Returns
Type | Description |
---|---|
Uint8 |
ToBytes()
convert to bytes array
Declaration
public override byte[] ToBytes()
Returns
Type | Description |
---|---|
System.Byte[] |
Overrides
Xrpl.BinaryCodec.Types.Uint<System.Byte>.ToBytes()
Operators
| Improve this Doc View SourceImplicit(Byte to Uint8)
create instance of this value
Declaration
public static implicit operator Uint8(byte v)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | v | byte value |
Returns
Type | Description |
---|---|
Uint8 |