Table of Contents

Interface IFrameReader

Namespace
CommandStation.Framing
Assembly
CommandStation.Abstractions.dll

Reassembles a stream of transport bytes into discrete protocol frames. Implementations buffer partial frames across calls, so they work over both message-oriented (UDP) and stream-oriented (serial, TCP) transports.

public interface IFrameReader

Methods

Append(byte[])

Appends freshly received bytes and raises OnFrameReceived for every complete frame that can now be extracted.

void Append(byte[] data)

Parameters

data byte[]

Events

OnFrameReceived

event EventHandler<FrameReceivedEventArgs>? OnFrameReceived

Event Type

EventHandler<FrameReceivedEventArgs>