File indexing completed on 2025-12-16 10:12:09
0001
0002
0003
0004
0005 #ifndef CPPCORO_FILE_BUFFERING_MODE_HPP_INCLUDED
0006 #define CPPCORO_FILE_BUFFERING_MODE_HPP_INCLUDED
0007
0008 namespace cppcoro
0009 {
0010 enum class file_buffering_mode
0011 {
0012 default_ = 0,
0013 sequential = 1,
0014 random_access = 2,
0015 unbuffered = 4,
0016 write_through = 8,
0017 temporary = 16
0018 };
0019
0020 constexpr file_buffering_mode operator&(file_buffering_mode a, file_buffering_mode b)
0021 {
0022 return static_cast<file_buffering_mode>(
0023 static_cast<int>(a) & static_cast<int>(b));
0024 }
0025
0026 constexpr file_buffering_mode operator|(file_buffering_mode a, file_buffering_mode b)
0027 {
0028 return static_cast<file_buffering_mode>(static_cast<int>(a) | static_cast<int>(b));
0029 }
0030 }
0031
0032 #endif