Class Uint32
Derived UInt class for serializing/deserializing 32 bit UInt
Implements
Inherited Members
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class Uint32 : Uint<uint>, ISerializedType
Constructors
| Improve this Doc View SourceUint32(Byte)
create instance of this value
Declaration
public Uint32(byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | byte value |
Uint32(UInt32)
create instance of this value
Declaration
public Uint32(uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | value | uint value |
Methods
| Improve this Doc View SourceFromJson(JToken)
Deserialize Uint32
Declaration
public static Uint32 FromJson(JToken token)
Parameters
Type | Name | Description |
---|---|---|
JToken | token | json token |
Returns
Type | Description |
---|---|
Uint32 | Uint32 value |
FromParser(BinaryParser, Nullable<Int32>)
Construct a Uint16 from a BinaryParser
Declaration
public static Uint32 FromParser(BinaryParser parser, int? hint = null)
Parameters
Type | Name | Description |
---|---|---|
BinaryParser | parser | A BinaryParser to read Uint16 from |
System.Nullable<System.Int32> | hint |
Returns
Type | Description |
---|---|
Uint32 |
FromValue(Int32)
create instance of this value
Declaration
public static Uint32 FromValue(int v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | v | int value |
Returns
Type | Description |
---|---|
Uint32 |
ToBytes()
convert to bytes array
Declaration
public override byte[] ToBytes()
Returns
Type | Description |
---|---|
System.Byte[] |
Overrides
Xrpl.BinaryCodec.Types.Uint<System.UInt32>.ToBytes()
Operators
| Improve this Doc View SourceImplicit(Byte to Uint32)
create instance of this value
Declaration
public static implicit operator Uint32(byte v)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | v | byte value |
Returns
Type | Description |
---|---|
Uint32 |
Implicit(UInt32 to Uint32)
create instance of this value
Declaration
public static implicit operator Uint32(uint v)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | v | uint value |
Returns
Type | Description |
---|---|
Uint32 |
Implicit(Uint32 to UInt32)
create instance of this value
Declaration
public static implicit operator uint (Uint32 v)
Parameters
Type | Name | Description |
---|---|---|
Uint32 | v | uint value |
Returns
Type | Description |
---|---|
System.UInt32 |