|
| io_buf () |
|
| io_buf (io_buf &other)=delete |
|
io_buf & | operator= (io_buf &other)=delete |
|
| io_buf (io_buf &&other)=delete |
|
io_buf & | operator= (io_buf &&other)=delete |
|
const std::vector< std::unique_ptr< VW::io::reader > > & | get_input_files () const |
|
const std::vector< std::unique_ptr< VW::io::writer > > & | get_output_files () const |
|
void | verify_hash (bool verify) |
|
uint32_t | hash () |
|
void | add_file (std::unique_ptr< VW::io::reader > &&file) |
|
void | add_file (std::unique_ptr< VW::io::writer > &&file) |
|
void | reset () |
| Calls reset on all contained input files. Moves back to the first file being the current one processed and resets the buffer position. If the contained readers are not resettable then this function will fail. The buffer should be tested with io_buf::is_resettable prior to calling this to avoid failure. More...
|
|
bool | is_resettable () const |
| Test if this io_buf supports resetting. More...
|
|
void | set (char *p) |
|
size_t | num_files () const |
| This function will return the number of input files AS WELL AS the number of output files. (because of legacy) More...
|
|
size_t | num_input_files () const |
|
size_t | num_output_files () const |
|
ssize_t | fill (VW::io::reader *f) |
|
size_t | unflushed_bytes_count () |
|
void | flush () |
|
bool | close_file () |
|
void | close_files () |
|
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&std::is_trivially_copyable< T >::value, bool >::type = true> |
size_t | write_value (const T &value) |
|
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&std::is_trivially_copyable< T >::value, bool >::type = true> |
T | read_value (VW::string_view debug_name="") |
|
template<typename T , typename std::enable_if<!std::is_pointer< T >::value &&std::is_trivially_copyable< T >::value, bool >::type = true> |
T | read_value_and_accumulate_size (VW::string_view debug_name, size_t &size) |
|
void | buf_write (char *&pointer, size_t n) |
|
size_t | buf_read (char *&pointer, size_t n, desired_align align=known_alignments::TEXT) |
|
size_t | bin_read_fixed (char *data, size_t len) |
|
size_t | bin_write_fixed (const char *data, size_t len) |
|
bool | isbinary () |
|
size_t | readto (char *&pointer, char terminal) |
|
size_t | copy_to (void *dst, size_t max_size) |
|
void | replace_buffer (char *buf, size_t capacity) |
|
char * | buffer_start () |
|