Class StreamParser
BinaryParser is used to compute fields and values from a HexString
Inherited Members
Namespace: Xrpl.BinaryCodec.Binary
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class StreamParser : BinaryParser
Constructors
| Improve this Doc View SourceStreamParser(Stream)
Initialize parser from stream
Declaration
public StreamParser(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | stream |
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 |