Show / Hide Table of Contents

Class StreamParser

BinaryParser is used to compute fields and values from a HexString

Inheritance
object
BinaryParser
StreamParser
Inherited Members
BinaryParser.Size
BinaryParser.Cursor
BinaryParser.End()
BinaryParser.Pos()
BinaryParser.ReadOneInt()
BinaryParser.ReadField()
BinaryParser.ReadFieldCode()
BinaryParser.ReadVlLength()
BinaryParser.End(int?)
Namespace: Xrpl.BinaryCodec.Binary
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class StreamParser : BinaryParser

Constructors

| Edit this page View Source

StreamParser(Stream)

Initialize parser from stream

Declaration
public StreamParser(Stream stream)
Parameters
Type Name Description
Stream stream

stream

Methods

| Edit this page View Source

Peek()

Consume the first n bytes of the BinaryParser

Declaration
public override byte Peek()
Returns
Type Description
byte
Overrides
BinaryParser.Peek()
| Edit this page View Source

Read(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
BinaryParser.Read(int)
| Edit this page View Source

ReadOne()

read the byte from the BinaryParser by current cursor position

Declaration
public override byte ReadOne()
Returns
Type Description
byte
Overrides
BinaryParser.ReadOne()
| Edit this page View Source

ReadUInt8()

Declaration
public override byte ReadUInt8()
Returns
Type Description
byte
Overrides
BinaryParser.ReadUInt8()
| Edit this page View Source

ReadUIntN(int)

Declaration
public byte ReadUIntN(int n)
Parameters
Type Name Description
int n
Returns
Type Description
byte
| Edit this page View Source

Skip(int)

todo

Declaration
public override void Skip(int n)
Parameters
Type Name Description
int n

n the number of bytes to skip

Overrides
BinaryParser.Skip(int)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX