InterChipDecoder class

Inter-chip协议解码器实现

负责将二进制数据解码为InterChipPacket对象 支持标准帧和长帧格式的解码

Implemented types

Constructors

InterChipDecoder()
构造函数(已移除配置依赖,采用固定的解码行为)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculateExpectedLength(List<int> data) int?
计算期望的数据包长度
override
decode(List<int> data) InterChipPacket?
将字节序列解码为包模型 P
override
decodeMultiple(List<int> data) List<InterChipPacket>
isValidPacketFormat(List<int> data) bool
检查数据包的基本格式是否正确
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseFlags(int flag) InterChipFlags
toString() String
A string representation of this object.
inherited
validatePacketIntegrity(InterChipPacket packet) bool
verifyChecksum(List<int> data, int checksum) bool
验证数据的校验和
override

Operators

operator ==(Object other) bool
The equality operator.
inherited