Show / Hide Table of Contents

    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 Source

    SlipReader(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 Source

    Read(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.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX