|
libxr
1.0
Want to be the best embedded framework
|
读写对齐布尔位图块的工具 (Helpers for reading and writing aligned boolean flag blocks). More...
#include <layout.hpp>
Static Public Member Functions | |
| static void | SetFlag (BlockBoolData< BlockSize > &obj, bool value) |
| 把一个布尔值编码进位图块 (Encode one boolean value into a flag block). | |
| static bool | ReadFlag (const BlockBoolData< BlockSize > &obj) |
| 从位图块读取布尔值 (Decode one boolean value from a flag block). | |
| static bool | Valid (const BlockBoolData< BlockSize > &obj) |
| 检查位图块内容是否仍是合法编码 (Check whether a flag block still contains a valid encoding). | |
读写对齐布尔位图块的工具 (Helpers for reading and writing aligned boolean flag blocks).
| BlockSize | 位图块字节数 (Flag-block size in bytes). |
Definition at line 35 of file layout.hpp.
|
inlinestatic |
从位图块读取布尔值 (Decode one boolean value from a flag block).
| obj | 待读取位图块 (Flag block to inspect). |
Definition at line 57 of file layout.hpp.
|
inlinestatic |
把一个布尔值编码进位图块 (Encode one boolean value into a flag block).
| obj | 目标位图块 (Target flag block). |
| value | 待编码布尔值 (Boolean value to encode). |
Definition at line 43 of file layout.hpp.
|
inlinestatic |
检查位图块内容是否仍是合法编码 (Check whether a flag block still contains a valid encoding).
| obj | 待检查位图块 (Flag block to validate). |
true (Returns true when the encoding is valid). Definition at line 69 of file layout.hpp.