Class BufferedStreamDevice
An abstract generic NMEA device that reads a stream at a decreased pace, mostly used to emulate NMEA input from files and strings.
Inheritance
Implements
Inherited Members
Namespace: NmeaParser
Assembly: NmeaParser.dll
Syntax
public abstract class BufferedStreamDevice : NmeaDevice, IDisposable
Constructors
Name | Description |
---|---|
BufferedStreamDevice() | Initializes a new instance of the BufferedStreamDevice class. |
BufferedStreamDevice(int) | Initializes a new instance of the BufferedStreamDevice class. |
Properties
Name | Description |
---|---|
BurstRate | Gets or sets the emulated burst rate - that is the frequency of each burst of messages. Defaults to 1 second (1hz). |
BurstSeparator | Gets or sets the separator between each burst of data. Defaults to FirstToken. |
EmulatedBaudRate | Gets or sets the emulated baud rate. Defaults to 115200 |
Methods
Name | Description |
---|---|
CloseStreamAsync(Stream) | Closes the stream the NmeaDevice is working on top off. |
GetStreamAsync() | Gets the stream to perform buffer reads on. |
OpenStreamAsync() | Creates and opens the stream the NmeaDevice is working on top off. |
Events
Name | Description |
---|---|
EndOfStreamReached | Raised when the stream has reached the end. If the stream can be revound, it'll start over, unless you stop the device in this thread. |
Applies
Target | Versions |
---|---|
.NET Standard 2.0 | main, v3.0, v2.2, v2.1, v2.0 |
.NET | main, v3.0 |
.NET Windows | main, v3.0 |
.NET Android | main, v3.0 |
.NET iOS | main, v3.0 |
.NET Framework | main, v3.0, v2.2, v2.1, v2.0 |
UWP | main, v3.0, v2.2, v2.1, v2.0 |
Xamarin.Android | v2.2, v2.1, v2.0 |
Xamarin.iOS | v2.2, v2.1, v2.0 |