Class FinSegmentScanner

Namespace
Subsembly.FinTS
Assembly
Subsembly.FinTS.Core.dll
public class FinSegmentScanner
Inheritance
FinSegmentScanner
Inherited Members

Properties

BinLength

Provides the value of the most recently collected binary length field.

public int BinLength { get; }

Property Value

int

DEG

The DEG position of the current element.

public int DEG { get; }

Property Value

int

EndOfSegment

True if the scanner is already at the end of the segment.

public bool EndOfSegment { get; }

Property Value

bool

GD

The GD position of the current element.

public int GD { get; }

Property Value

int

Length

Provides the total number of bytes that have been consumed so far.

public int Length { get; }

Property Value

int

Remarks

This value can be used to indicate the exact byte position of a parsing error or to get the total segment length in the EndOfSegment state.

PrevDEG

The DEG position of the previous element.

public int PrevDEG { get; }

Property Value

int

PrevGD

The GD position of the previous element.

public int PrevGD { get; }

Property Value

int

State

The current state of this segment scanner instance.

public FinSegmentScannerState State { get; }

Property Value

FinSegmentScannerState

Methods

Restart()

Restart the segment scanner to scan another segment.

public void Restart()

Scan(byte)

Processes the input byte according to the current state.

public FinSegmentScannerState Scan(byte ch)

Parameters

ch byte

The input byte to be processed.

Returns

FinSegmentScannerState

Returns the new scanner state that is the result of processing the input byte in the context of the current state. The new scanner state can be used to determine what to do with the input byte. See FinSegmentScannerState for a description of the states.