|
libxr
1.0
Want to be the best embedded framework
|
键信息结构,存储键的元数据 (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). | |
Data Fields | |
| BlockBoolData< MinWriteSize > | no_next_key |
| 是否是最后一个键 | |
| BlockBoolData< MinWriteSize > | available_flag |
| 该键是否有效 | |
| BlockBoolData< MinWriteSize > | uninit |
| 该键是否未初始化 | |
| uint32_t | raw_info = 0 |
键信息结构,存储键的元数据 (Structure containing key metadata).
Definition at line 105 of file layout.hpp.
|
inline |
构造一个默认可写的键头元数据 (Construct one default writable key-header metadata object).
Definition at line 118 of file layout.hpp.
|
inline |
获取数据字节数 (Get the payload size in bytes).
Definition at line 153 of file layout.hpp.
|
inline |
获取键名长度 (Get the key name length).
Definition at line 138 of file layout.hpp.
|
inline |
设置数据字节数 (Set the payload size in bytes).
| size | 数据字节数 (Payload size in bytes). |
Definition at line 144 of file layout.hpp.
|
inline |
设置键名长度 (Set the key name length).
| len | 键名长度 (Key name length). |
Definition at line 129 of file layout.hpp.
| BlockBoolData<MinWriteSize> KeyInfo::available_flag |
该键是否有效
Definition at line 108 of file layout.hpp.
| BlockBoolData<MinWriteSize> KeyInfo::no_next_key |
是否是最后一个键
Definition at line 107 of file layout.hpp.
| uint32_t KeyInfo::raw_info = 0 |
高 7 位保存 nameLength,低 25 位保存 dataSize。 Upper 7 bits store nameLength and lower 25 bits store dataSize.
Definition at line 111 of file layout.hpp.
| BlockBoolData<MinWriteSize> KeyInfo::uninit |
该键是否未初始化
Definition at line 109 of file layout.hpp.