Class SlipReader
Extracts SLIP-delimited bytes from a stream.
Inheritance
System.Object
SlipReader
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FosterBuster.IU880B.Messaging
Assembly: IU880B.dll
Syntax
public sealed class SlipReader
Constructors
| Improve this Doc View SourceSlipReader(Func<Byte[], Task>)
Initializes a new instance of the SlipReader class.
Declaration
public SlipReader(Func<byte[], Task> onSlipFrameAvailable)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Byte[], System.Threading.Tasks.Task> | onSlipFrameAvailable | Action to send the frame to. |
Methods
| Improve this Doc View SourceRead(Stream)
Reads SLIP-frames from the stream.
Declaration
public Task Read(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | the stream to read from. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the result of the asynchronous operation. |