libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::Print::FormatArgumentInfo Struct Reference

Compiled-format runtime contract consumed by Writer. More...

#include <format_protocol.hpp>

Data Fields

FormatPackKind pack {}
 packed runtime storage kind / 运行期打包存储类别
 
FormatArgumentRule rule
 compile-time argument rule / 编译期实参匹配规则
 

Detailed Description

Compiled-format runtime contract consumed by Writer.

Writer 消费的编译格式运行期协议。

A compiled format source always provides Codes(), one contiguous uint8_t byte block terminated in-band by FormatOp::End; ArgumentList(), one field-ordered FormatArgumentInfo array used for runtime argument packing; and Profile(), one compile-time runtime executor profile. Frontends that allow reordered call-site arguments may additionally expose a separate compile-time ArgumentOrder() list or a source-ordered matching list. 编译格式源总会提供三部分:Codes(),即一段在块内用 FormatOp::End 结束的连续 uint8_t 字节块;ArgumentList(),即按字段执行顺序排列、供运行期参数打包使用的 FormatArgumentInfo 数组;以及 Profile(),即一个编译期运行期执行器配置。若某个 前端允许调用点参数重排,还可以额外提供独立的编译期 ArgumentOrder() 索引表或 按源参数顺序排列的匹配元信息表。

Packed argument metadata shared by compile-time matching and runtime packing.

编译期匹配与运行期打包共用的参数元信息。

pack is the runtime storage contract for the packed argument blob. rule is the compile-time type-matching contract and never appears in the runtime bytecode stream. pack 描述运行期参数字节块里的存储契约;rule 描述编译期类型匹配契约,不会出现在 运行期字节码流里。

Definition at line 342 of file format_protocol.hpp.

Field Documentation

◆ pack

FormatPackKind LibXR::Print::FormatArgumentInfo::pack {}

packed runtime storage kind / 运行期打包存储类别

Definition at line 344 of file format_protocol.hpp.

344{};

◆ rule

FormatArgumentRule LibXR::Print::FormatArgumentInfo::rule
Initial value:
=
FormatArgumentRule::None

compile-time argument rule / 编译期实参匹配规则

Definition at line 345 of file format_protocol.hpp.


The documentation for this struct was generated from the following file: