Class BufferParser
BinaryParser is used to compute fields and values from a HexString
Inherited Members
Namespace: Xrpl.BinaryCodec.Binary
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class BufferParser : BinaryParser
Constructors
| Improve this Doc View SourceBufferParser(Byte[])
Initialize parser from bytes
Declaration
public BufferParser(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | bytes | bytes |
BufferParser(String)
Initialize bytes to a hex string
Declaration
public BufferParser(string hex)
Parameters
Type | Name | Description |
---|---|---|
System.String | hex | hexBytes a hex string |
Fields
| Improve this Doc View SourceBytes
buffer bytes
Declaration
protected byte[] Bytes
Field Value
Type | Description |
---|---|
System.Byte[] |
Methods
| Improve this Doc View SourcePeek()
Consume the first n bytes of the BinaryParser
Declaration
public override byte Peek()
Returns
Type | Description |
---|---|
System.Byte |
Overrides
| Improve this Doc View SourceRead(Int32)
read the first n bytes from the BinaryParser
Declaration
public override byte[] Read(int n)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | n | The number of bytes to read |
Returns
Type | Description |
---|---|
System.Byte[] | The bytes |
Overrides
| Improve this Doc View SourceReadOne()
read the byte from the BinaryParser by current cursor position
Declaration
public override byte ReadOne()
Returns
Type | Description |
---|---|
System.Byte |
Overrides
| Improve this Doc View SourceSkip(Int32)
todo
Declaration
public override void Skip(int n)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | n | n the number of bytes to skip |
Overrides
| Improve this Doc View SourceToBytes()
Declaration
public byte[] ToBytes()
Returns
Type | Description |
---|---|
System.Byte[] |