Class StReader
Inheritance
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class StReader : object
Constructors
| Improve this Doc View SourceStReader(BinaryParser)
create StReader reader from binary parser
Declaration
public StReader(BinaryParser parser)
Parameters
Type | Name | Description |
---|---|---|
BinaryParser | parser |
Methods
| Improve this Doc View SourceEnd()
check if this is end of parser
Declaration
public bool End()
Returns
Type | Description |
---|---|
System.Boolean |
FromFile(String)
create StReader reader from file
Declaration
public static StReader FromFile(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | file path |
Returns
Type | Description |
---|---|
StReader |
FromHex(String)
create StReader reader from hex string
Declaration
public static StReader FromHex(string hex)
Parameters
Type | Name | Description |
---|---|---|
System.String | hex | hex string |
Returns
Type | Description |
---|---|
StReader |
Parser()
get this binary parser
Declaration
public BinaryParser Parser()
Returns
Type | Description |
---|---|
BinaryParser |
ReadAccountId()
read field as AccountId from this parser
Declaration
public AccountId ReadAccountId()
Returns
Type | Description |
---|---|
AccountId |
ReadAmount()
read field as Amount from this parser
Declaration
public Amount ReadAmount()
Returns
Type | Description |
---|---|
Amount |
ReadBlob()
read field as Blob from this parser
Declaration
public Blob ReadBlob()
Returns
Type | Description |
---|---|
Blob |
ReadCurrency()
read field as Currency from this parser
Declaration
public Currency ReadCurrency()
Returns
Type | Description |
---|---|
Currency |
ReadHash128()
read field as Hash128 from this parser
Declaration
public Hash128 ReadHash128()
Returns
Type | Description |
---|---|
Hash128 |
ReadHash160()
read field as Hash160 from this parser
Declaration
public Hash160 ReadHash160()
Returns
Type | Description |
---|---|
Hash160 |
ReadHash256()
read field as Hash256 from this parser
Declaration
public Hash256 ReadHash256()
Returns
Type | Description |
---|---|
Hash256 |
ReadHashPrefix()
Read Hash Prefix
Declaration
public HashPrefix ReadHashPrefix()
Returns
Type | Description |
---|---|
HashPrefix | HashPrefix prefix type |
ReadOneInt()
read one integer
Declaration
public int ReadOneInt()
Returns
Type | Description |
---|---|
System.Int32 |
ReadPathSet()
read field as PathSet from this parser
Declaration
public PathSet ReadPathSet()
Returns
Type | Description |
---|---|
PathSet |
ReadStArray()
read field as StArray from this parser
Declaration
public StArray ReadStArray()
Returns
Type | Description |
---|---|
StArray |
ReadStObject()
read field as StObject from this parser
Declaration
public StObject ReadStObject()
Returns
Type | Description |
---|---|
StObject |
ReadUint16()
read field as Uint16 from this parser
Declaration
public Uint16 ReadUint16()
Returns
Type | Description |
---|---|
Uint16 |
ReadUint32()
read field as Uint32 from this parser
Declaration
public Uint32 ReadUint32()
Returns
Type | Description |
---|---|
Uint32 |
ReadUint64()
read field as Uint64 from this parser
Declaration
public Uint64 ReadUint64()
Returns
Type | Description |
---|---|
Uint64 |
ReadUint8()
read field as Uint8 from this parser
Declaration
public Uint8 ReadUint8()
Returns
Type | Description |
---|---|
Uint8 |
ReadVector256()
read field as Vector256 from this parser
Declaration
public Vector256 ReadVector256()
Returns
Type | Description |
---|---|
Vector256 |
ReadVlStObject()
read field as StObject from this parser
Declaration
public StObject ReadVlStObject()
Returns
Type | Description |
---|---|
StObject |