Skip to content

SubscriptionFrame Struct

A buffered frame and its subscription-local enqueue number (FR-RAW-016). See ILossAwareSubscription for continuity and competing-reader semantics.

public readonly struct SubscriptionFrame

Constructors

SubscriptionFrame(CanFrameEvent, ulong) Constructor

Creates a frame envelope. The supplied event retains its payload lifetime.

public SubscriptionFrame(CanKit.Pro.RawCan.CanFrameEvent frameEvent, ulong sequenceNumber);

Parameters

frameEvent CanFrameEvent

The frame, echo flag and original arrival timestamps.

sequenceNumber UInt64

Accepted enqueue number, modulo 2^64.

Properties

SubscriptionFrame.FrameEvent Property

The original event, with independently owned payload when read from the demux.

public CanKit.Pro.RawCan.CanFrameEvent FrameEvent { get; }

Property Value

CanFrameEvent

SubscriptionFrame.SequenceNumber Property

This subscription's accepted enqueue number. Starts at 1 and wraps from UInt64.MaxValue to 0; excluded or refused frames consume no number.

public ulong SequenceNumber { get; }

Property Value

UInt64