49 Server(
size_t buffer_length);
88 enum class ParseResult : uint8_t
103 size_t ParseDataRaw(
ConstRawData data,
bool from_callback,
bool in_isr);
111 bool SyncToPacketStart();
129 ParseResult ReadPayload(
bool from_callback,
bool in_isr);
138 uint32_t data_len_ = 0;
只读原始数据视图 / Immutable raw data view
微秒时间戳 / Microsecond timestamp
提供固定大小循环缓冲区的字节 FIFO 队列。 Byte FIFO queue providing a fixed-size circular buffer.
红黑树的泛型数据节点,继承自 BaseNode Generic data node for Red-Black Tree, inheriting from BaseNode.
红黑树实现,支持泛型键和值,并提供线程安全操作 Red-Black Tree implementation supporting generic keys and values with thread-...
可写原始数据视图 / Mutable raw data view
将字节流解析成 packet 并发布到已注册 topic 的状态机 / State machine that parses byte streams into packets and publishes...
void Register(TopicHandle topic)
注册一个可接收 packet 的 topic / Register one topic that may receive parsed packets
size_t ParseData(ConstRawData data)
在普通上下文里喂入一批新字节 / Feed one new byte batch in normal context
size_t ParseDataFromCallback(ConstRawData data, bool in_isr)
在回调/ISR 路径里喂入一批新字节 / Feed one new byte batch in callback/ISR path
Status
parser 当前所在阶段 / Current stage of the parser
@ WAIT_START
正在找下一包前缀 / Searching for the next packet prefix.
Server(size_t buffer_length)
构造 parser 并分配内部暂存队列 / Construct the parser and allocate its internal staging queue
RBTree< uint32_t >::Node< Block > * TopicHandle
指向一个 topic 运行时状态块的句柄 / Handle pointing to one topic runtime state block
LibXR 命名空间 / LibXR namespace.