|
libxr
1.0
Want to be the best embedded framework
|
编译后记录流的顺序读取器 / Sequential reader for the compiled record stream More...
#include <writer_reader.hpp>
Public Member Functions | |
| CodeReader (const uint8_t *codes) | |
| 从单个编译字节块起点构造读取器 / Create a reader over the beginning of one compiled byte blob | |
| FormatOp | ReadOp () |
| 读取下一条运行期操作码 / Read the next runtime opcode | |
| template<typename T > | |
| T | Read () |
| 读取编译期发射器按本机字节序写入的 POD 值 / Read a native-endian POD value emitted by the compile-time emitter | |
| FormatType | ReadFormatType () |
读取 GenericField 载荷中的语义类型字节 / Read the semantic type byte carried by one GenericField payload | |
| Spec | ReadSpec () |
读取紧跟在 GenericField 类型字节后的 4 字节字段载荷 / Read the 4-byte field payload that follows one GenericField type byte | |
| std::string_view | ReadInlineText () |
| 读取内嵌在记录流中的短文本 / Read a null-terminated short text payload embedded in the record stream | |
| std::string_view | ReadTextRef () |
| 读取指向尾部文本池的偏移和长度 / Read an offset-size pair pointing into the trailing text pool | |
Private Attributes | |
| const uint8_t * | pos_ = nullptr |
| const uint8_t * | base_ = nullptr |
编译后记录流的顺序读取器 / Sequential reader for the compiled record stream
Definition at line 10 of file writer_reader.hpp.
|
inlineexplicit |
从单个编译字节块起点构造读取器 / Create a reader over the beginning of one compiled byte blob
| codes | 指向单个编译字节块起点的指针 / Pointer to the beginning of one compiled byte blob |
Definition at line 17 of file writer_reader.hpp.
|
inlinenodiscard |
读取编译期发射器按本机字节序写入的 POD 值 / Read a native-endian POD value emitted by the compile-time emitter
| T | 待读取的 POD 类型 / POD type to read |
Definition at line 33 of file writer_reader.hpp.
|
inlinenodiscard |
读取 GenericField 载荷中的语义类型字节 / Read the semantic type byte carried by one GenericField payload
Definition at line 45 of file writer_reader.hpp.
|
inlinenodiscard |
读取内嵌在记录流中的短文本 / Read a null-terminated short text payload embedded in the record stream
Definition at line 68 of file writer_reader.hpp.
|
inlinenodiscard |
读取下一条运行期操作码 / Read the next runtime opcode
Definition at line 25 of file writer_reader.hpp.
|
inlinenodiscard |
读取紧跟在 GenericField 类型字节后的 4 字节字段载荷 / Read the 4-byte field payload that follows one GenericField type byte
The opcode and semantic type bytes are read separately. This call only consumes flags, fill, width, and precision, in that order. 操作码与语义类型字节由外层单独读取;本函数只继续读取后续 flags、fill、width、precision 这 4 个字节,顺序固定。
Definition at line 56 of file writer_reader.hpp.
|
inlinenodiscard |
读取指向尾部文本池的偏移和长度 / Read an offset-size pair pointing into the trailing text pool
The offset is already rebased against the final code blob base. 该偏移已经按最终代码块起点完成重定位。
Definition at line 83 of file writer_reader.hpp.
|
private |
Definition at line 93 of file writer_reader.hpp.
|
private |
Definition at line 92 of file writer_reader.hpp.