Table of Contents

Class CellFrame

Namespace
KernLab.Cell.Contracts
Assembly
KernLab.Cell.Contracts.dll

Cell 帧族根——单一 tag 空间(总体设计 §3.1:帧体 = [Tag 1B][字段声明序],小端基元; 六族共用一线内判别,接收侧按 tag 单点分发,未知 tag 即协议错误 §3.4)。

★ 线编码由 [WireMessage] 源生成(CellFrameCodec):Encode/EncodePooled/ Encode(IBufferWriter)/TryDecode 与 TagXxx 常量全部为生成物——畸形帧 TryDecode=false(D5 硬解析)。

★ 族划分(§3.3+双向通知增补):Control(0x01–0x05)/Invoke(0x10–0x14)/Callback(0x20–0x21)/ Telemetry(0x30)/Abort(0x40)/Notify(0x50)——族是纪律与关联域的归属,不另占线内字节; 0x51–0x5F 为 Notify 族后续空档。

[WireMessage]
public abstract record CellFrame : IEquatable<CellFrame>
Inheritance
CellFrame
Implements
Derived
Inherited Members

Constructors

CellFrame()

protected CellFrame()

CellFrame(CellFrame)

protected CellFrame(CellFrame original)

Parameters

original CellFrame

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Methods

Equals(CellFrame?)

public virtual bool Equals(CellFrame? other)

Parameters

other CellFrame

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CellFrame?, CellFrame?)

public static bool operator ==(CellFrame? left, CellFrame? right)

Parameters

left CellFrame
right CellFrame

Returns

bool

operator !=(CellFrame?, CellFrame?)

public static bool operator !=(CellFrame? left, CellFrame? right)

Parameters

left CellFrame
right CellFrame

Returns

bool