13#if defined(RESTINIO_ASIO_HAS_WINDOWS_OVERLAPPED_PTR)
60 return file_descriptor;
64template <
typename META >
82 fmt::format(
"unable to get file size: error code:{}",
GetLastError() ) };
93 11644473600ULL * 1000 *1000;
102 std::chrono::system_clock::time_point{
103 std::chrono::microseconds(
110 "unable to get file last modification: error code:{}",
constexpr file_descriptor_t null_file_descriptor()
Get file descriptor which stands for null.
std::uint64_t file_size_t
run_on_this_thread_settings_t< Traits > on_this_thread()
A special marker for the case when http_server must be run on the context of the current thread.
void close_file(file_descriptor_t fd)
Close file by its descriptor.
std::int64_t file_offset_t
std::FILE * file_descriptor_t
file_descriptor_t open_file(const char *file_path)
Open file.
META get_file_meta(file_descriptor_t fd)
Get file size.