Struct NmeaTagBlockParser
Extracts data from the Tag Block section of an NMEA message.
Namespace: Ais.Net
Assembly: Ais.Net.dll
Syntax
public struct NmeaTagBlockParser
Constructors
| Improve this Doc View SourceNmeaTagBlockParser(ReadOnlySpan<Byte>)
Creates a NmeaTagBlockParser.
Declaration
public NmeaTagBlockParser(ReadOnlySpan<byte> source)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<System.Byte> | source | The ASCII-encoded tag block, without the leading and trailing
|
NmeaTagBlockParser(ReadOnlySpan<Byte>, Boolean)
Creates a NmeaTagBlockParser.
Declaration
public NmeaTagBlockParser(ReadOnlySpan<byte> source, bool throwWhenTagBlockContainsUnknownFields)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<System.Byte> | source | The ASCII-encoded tag block, without the leading and trailing
|
System.Boolean | throwWhenTagBlockContainsUnknownFields | Ignore non-standard and unsupported tag block field types. Useful when working with data sources that add non-standard fields. |
Properties
| Improve this Doc View SourceSentenceGrouping
Gets the sentence grouping information for fragmented messages, if present, null otherwise.
Declaration
public NmeaTagBlockSentenceGrouping? SentenceGrouping { get; }
Property Value
Type | Description |
---|---|
System.Nullable<NmeaTagBlockSentenceGrouping> |
Source
Gets the underlying data that was passed at construction.
Declaration
public ReadOnlySpan<byte> Source { get; }
Property Value
Type | Description |
---|---|
ReadOnlySpan<System.Byte> |
UnixTimestamp
Gets the unix timestamp, if present, null otherwise.
Declaration
public long? UnixTimestamp { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |