19 if (buffer_has_write_data())
41 compact_write<size_t>(s.size());
49 const size_t size = compact_read<size_t>();
50 std::string s(size, 0);
60 const int64_t size = compact_read<int64_t>();
61 if (size > 0 && size < max_size)
63 s.resize(
size_t(size));
73 if (buffer_has_write_data())
76 try { write_buffer(); }
catch (...) {}
static void warning(std::string_view message) noexcept
size_t read_data(char *data, const size_t n)
std::string safe_read_string(int64_t max_size)
void write_data(const char *data, size_t n)
int64_t get_position() const noexcept
File_Buffer(Abstract_File &file)
std::string read_string()
void set_position(int64_t position)
void write_string(const std::string &s)
void seek(int64_t new_position) noexcept