Class FinSegmentHeader
Internal helper class for SegmentBuffer to access segment header properties.
public sealed class FinSegmentHeader
- Inheritance
-
FinSegmentHeader
- Inherited Members
Properties
Number
Returns the segment's number.
public string Number { get; }
Property Value
Remarks
The returned value might be null which means that the corresponding GD was empty or not present.
There is also no guarantee that the returned value represents a number/value - it's just the uninterpreted
string value.
RefNo
Returns the segment's reference segment number.
public string RefNo { get; }
Property Value
Remarks
The returned value might be null which means that the corresponding GD was empty or not present.
There is also no guarantee that the returned value represents a number/value - it's just the uninterpreted
string value.
Type
Returns the segment's type.
public string Type { get; }
Property Value
Remarks
The returned value might be null which means that the corresponding GD was empty or not present.
Version
Returns the segment's version.
public string Version { get; }
Property Value
Remarks
The returned value might be null which means that the corresponding GD was empty or not present.
There is also no guarantee that the returned value represents a number/value - it's just the uninterpreted
string value.
Methods
Scan(byte[], int, int)
Scans and extracts all the segment header information.
public static FinSegmentHeader Scan(byte[] vbSegmentBytes, int nOffset, int nLength)
Parameters
Returns
- FinSegmentHeader
Returns a parsed SegmentHeader.
Exceptions
- FinParseException
Is thrown, if
- one of the segment header fields is too long (we have a generous length limit of 16 chars for each field)
- one of the segment header fields is encoded as a binary element.
- there's a general problem while scanning the segment.