11#include <userver/utils/boost_filesystem_file_status.hpp>
13#include <userver/fs/blocking/open_mode.hpp>
14#include <userver/utils/fast_pimpl.hpp>
16USERVER_NAMESPACE_BEGIN
30 CFile(CFile&&)
noexcept;
31 CFile& operator=(CFile&&)
noexcept;
37 const std::string& path,
39 boost::filesystem::perms perms = boost::filesystem::perms::owner_read | boost::filesystem::perms::owner_write
43 explicit CFile(std::FILE* file)
noexcept;
62 std::size_t
Read(
char* buffer, std::size_t max_size);
68 void Write(std::string_view data);
89 utils::FastPimpl<Impl,
sizeof(
char*),
alignof(
char*)> impl_;