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
| Edit this page View SourceStreamParser(Stream)
Initialize parser from stream
Declaration
public StreamParser(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | stream |
Methods
| Edit this page View SourcePeek()
Consume the first n bytes of the BinaryParser
Declaration
public override byte Peek()
Returns
| Type | Description |
|---|---|
| byte |
Overrides
| Edit this page View SourceRead(int)
read the first n bytes from the BinaryParser
Declaration
public override byte[] Read(int n)
Parameters
| Type | Name | Description |
|---|---|---|
| int | n | The number of bytes to read |
Returns
| Type | Description |
|---|---|
| byte[] | The bytes |
Overrides
| Edit this page View SourceReadOne()
read the byte from the BinaryParser by current cursor position
Declaration
public override byte ReadOne()
Returns
| Type | Description |
|---|---|
| byte |
Overrides
| Edit this page View SourceReadUInt8()
Declaration
public override byte ReadUInt8()
Returns
| Type | Description |
|---|---|
| byte |
Overrides
| Edit this page View SourceReadUIntN(int)
Declaration
public byte ReadUIntN(int n)
Parameters
| Type | Name | Description |
|---|---|---|
| int | n |
Returns
| Type | Description |
|---|---|
| byte |
Skip(int)
todo
Declaration
public override void Skip(int n)
Parameters
| Type | Name | Description |
|---|---|---|
| int | n | n the number of bytes to skip |