22 #include <kvikio/file_utils.hpp>
48 CompatMode parse_compat_mode_str(std::string_view compat_mode_str);
61 bool _is_compat_mode_preferred{
true};
62 bool _is_compat_mode_preferred_for_async{
true};
87 std::
string const& flags,
存储和管理与 FileHandle 相关的兼容模式数据。
CompatMode compat_mode_requested() const noexcept
检索原始请求的兼容模式。
bool is_compat_mode_preferred_for_async() const noexcept
检查关联 FileHandle 的异步 I/O 兼容模式是否应为 C...
CompatMode infer_compat_mode_if_auto(CompatMode compat_mode) noexcept
功能上等同于 defaults::infer_compat_mode_if_auto(CompatMode)。
bool is_compat_mode_preferred() const noexcept
检查关联 FileHandle 的同步 I/O 兼容模式是否应为 Co...
CompatModeManager() noexcept=default
构造一个空的兼容模式管理器。
void validate_compat_mode_for_async() const
根据现有的兼容模式确定是否可以执行异步 I/O(或抛出异常)。