Loading...
Searching...
No Matches
io_utilities.h
Go to the documentation of this file.
FileMapping & operator=(const FileMapping &)=delete
bool map(const filesystem::path &)
~FileMapping()
FileMapping(const FileMapping &)=delete
FileMapping(FileMapping &&) noexcept
void reset()
FileMapping()=default
Definition io_utilities.h:30
void close()
bool is_open() const
FileReader(const FileReader &)=delete
void read_at(span< std::byte >, uint64_t offset) const
uint64_t file_size() const
void read_at(const span< T, Extent > buffer, const uint64_t offset) const
Definition io_utilities.h:48
FileReader & operator=(FileReader &&)=delete
~FileReader()
void open(const filesystem::path &)
FileReader(FileReader &&)=delete
FileReader & operator=(const FileReader &)=delete
FileReader()=default
Definition io_utilities.h:75
void open(const filesystem::path &)
FileWriter(FileWriter &&)=delete
FileWriter & operator=(const FileWriter &)=delete
void write(span< const std::byte >)
FileWriter & operator=(FileWriter &&)=delete
void finish_with_rename(const filesystem::path &)
FileWriter()=default
FileWriter(const FileWriter &)=delete
~FileWriter()
Definition io_utilities.h:104
Definition configuration.h:10
vector< filesystem::path > list_directories(const filesystem::path &directory, std::function< bool(const filesystem::path &)> predicate)
void write_binary_value(FileWriter &writer, const RawStorable auto &value)
Definition io_utilities.h:116
bool is_file_current(const filesystem::path &file, const vector< filesystem::path > &sources, uintmax_t expected_size=0)
vector< filesystem::path > list_files(const filesystem::path &directory, std::function< bool(const filesystem::path &)> predicate)
void download_files_if_missing(const filesystem::path &directory, string_view base_url, const vector< string_view > &filenames)
void download_if_missing(const filesystem::path &, const string &)
void read_int32_batch(const FileReader &, const vector< Index > &sample_indices, Index samples_number, uint64_t record_values, Index source_offset, Index values_number, span< float > output, Index output_stride, Index output_offset, string_view context)
void write_binary_string(FileWriter &writer, const string &value)
Definition io_utilities.h:132
string read_text_file(const filesystem::path &)
bool read_binary_value(istream &stream, RawStorable auto &value)
Definition io_utilities.h:106
bool read_binary_values(istream &stream, RawStorable auto &... values)
Definition io_utilities.h:111
bool read_binary_string(istream &stream, string &value)
Definition io_utilities.h:121