|
libxr
Embedded C++ framework for bare-metal, RTOS and Linux
|
键信息结构,存储键的元数据 Structure containing key metadata. More...
#include <layout.hpp>
Public Member Functions | |
| KeyInfo () | |
| 构造一个默认可写的键头元数据 Construct one default writable key-header metadata object. | |
| void | SetNameLength (uint8_t len) |
| 设置键名长度 / Set the key name length. | |
| uint8_t | GetNameLength () const |
| 获取键名长度 / Get the key name length. | |
| void | SetDataSize (uint32_t size) |
| 设置数据字节数 / Set the payload size in bytes. | |
| uint32_t | GetDataSize () const |
| 获取数据字节数 / Get the payload size in bytes. | |
Public Attributes | |
| BlockBoolData< MinWriteSize > | no_next_key |
| 是否是最后一个键 | |
| BlockBoolData< MinWriteSize > | available_flag |
| 该键是否有效 | |
| BlockBoolData< MinWriteSize > | uninit |
| 该键是否未初始化 | |
| uint32_t | raw_info |
键信息结构,存储键的元数据 Structure containing key metadata.
Definition at line 118 of file layout.hpp.
|
inline |
构造一个默认可写的键头元数据 Construct one default writable key-header metadata object.
Definition at line 132 of file layout.hpp.
|
inline |
获取数据字节数 / Get the payload size in bytes.
Definition at line 167 of file layout.hpp.
|
inline |
获取键名长度 / Get the key name length.
Definition at line 152 of file layout.hpp.
|
inline |
设置数据字节数 / Set the payload size in bytes.
| size | 数据字节数 / Payload size in bytes. |
Definition at line 158 of file layout.hpp.
|
inline |
设置键名长度 / Set the key name length.
| len | 键名长度 / Key name length. |
Definition at line 143 of file layout.hpp.
| BlockBoolData<MinWriteSize> KeyInfo::available_flag |
该键是否有效
Definition at line 121 of file layout.hpp.
| BlockBoolData<MinWriteSize> KeyInfo::no_next_key |
是否是最后一个键
Definition at line 120 of file layout.hpp.
| uint32_t KeyInfo::raw_info |
高 7 位保存 nameLength,低 25 位保存 dataSize。 Upper 7 bits store nameLength and lower 25 bits store dataSize.
Definition at line 124 of file layout.hpp.
| BlockBoolData<MinWriteSize> KeyInfo::uninit |
该键是否未初始化
Definition at line 122 of file layout.hpp.