|
libxr
1.0
Want to be the best embedded framework
|
键信息结构,存储键的元数据 (Structure containing key metadata). More...
Public Member Functions | |
| KeyInfo () | |
| 构造一个擦除态键头 (Construct one erased-state key header). | |
| KeyInfo (bool nextKey, uint8_t nameLength, uint32_t dataSize) | |
| 构造一个指定元数据的键头 (Construct one key header with explicit metadata). | |
| void | SetNextKeyExist (bool value) |
| 设置是否存在后继键 (Set whether another key follows). | |
| bool | GetNextKeyExist () const |
| 获取是否存在后继键 (Get whether another key follows). | |
| 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 | |
| uint32_t | raw_data |
键信息结构,存储键的元数据 (Structure containing key metadata).
Definition at line 117 of file raw_sequential.hpp.
| DatabaseRawSequential::KeyInfo::KeyInfo | ( | ) |
构造一个擦除态键头 (Construct one erased-state key header).
Definition at line 23 of file raw_sequential.cpp.
| DatabaseRawSequential::KeyInfo::KeyInfo | ( | bool | nextKey, |
| uint8_t | nameLength, | ||
| uint32_t | dataSize ) |
构造一个指定元数据的键头 (Construct one key header with explicit metadata).
| nextKey | 是否还有后继键 (Whether another key follows this one). |
| nameLength | 键名长度 (Key name length). |
| dataSize | 数据字节数 (Payload size in bytes). |
Definition at line 25 of file raw_sequential.cpp.
| uint32_t DatabaseRawSequential::KeyInfo::GetDataSize | ( | ) | const |
获取数据字节数 (Get the payload size in bytes).
Definition at line 59 of file raw_sequential.cpp.
| uint8_t DatabaseRawSequential::KeyInfo::GetNameLength | ( | ) | const |
获取键名长度 (Get the key name length).
Definition at line 49 of file raw_sequential.cpp.
| bool DatabaseRawSequential::KeyInfo::GetNextKeyExist | ( | ) | const |
获取是否存在后继键 (Get whether another key follows).
true (Returns true when another key follows). Definition at line 39 of file raw_sequential.cpp.
| void DatabaseRawSequential::KeyInfo::SetDataSize | ( | uint32_t | size | ) |
设置数据字节数 (Set the payload size in bytes).
| size | 数据字节数 (Payload size in bytes). |
Definition at line 54 of file raw_sequential.cpp.
| void DatabaseRawSequential::KeyInfo::SetNameLength | ( | uint8_t | len | ) |
设置键名长度 (Set the key name length).
| len | 键名长度 (Key name length). |
Definition at line 44 of file raw_sequential.cpp.
| void DatabaseRawSequential::KeyInfo::SetNextKeyExist | ( | bool | value | ) |
设置是否存在后继键 (Set whether another key follows).
| value | 是否存在后继键 (Whether another key follows). |
Definition at line 34 of file raw_sequential.cpp.
| uint32_t LibXR::DatabaseRawSequential::KeyInfo::raw_data |
1 位后继键标志、7 位键名长度、24 位数据长度 (1-bit next-key flag, 7-bit name length, 24-bit payload size).
Definition at line 119 of file raw_sequential.hpp.