Class FinSegmentScanner
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
DEG
The DEG position of the current element.
public int DEG { get; }
Property Value
EndOfSegment
True if the scanner is already at the end of the segment.
public bool EndOfSegment { get; }
Property Value
GD
The GD position of the current element.
public int GD { get; }
Property Value
Length
Provides the total number of bytes that have been consumed so far.
public int Length { get; }
Property Value
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
PrevGD
The GD position of the previous element.
public int PrevGD { get; }
Property Value
State
The current state of this segment scanner instance.
public FinSegmentScannerState State { get; }
Property Value
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
byteThe 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.