Vowpal Wabbit
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
io_buf Class Reference

#include <io_buf.h>

Public Member Functions

 io_buf ()
 
 io_buf (io_buf &other)=delete
 
io_bufoperator= (io_buf &other)=delete
 
 io_buf (io_buf &&other)=delete
 
io_bufoperator= (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_buffer ()
 
void reset_file (VW::io::reader *f)
 
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 >
void write_value (const T &value)
 
template<typename T >
read_value (const char *debug_name=nullptr)
 
void buf_write (char *&pointer, size_t n)
 
size_t buf_read (char *&pointer, size_t n)
 
size_t bin_read_fixed (char *data, size_t len, const char *read_message)
 
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 ()
 

Static Public Member Functions

static ssize_t read_file (VW::io::reader *f, void *buf, size_t nbytes)
 

Public Attributes

size_t current = 0
 

Constructor & Destructor Documentation

io_buf::io_buf ( )
inline
io_buf::io_buf ( io_buf other)
delete
io_buf::io_buf ( io_buf &&  other)
delete

Member Function Documentation

void io_buf::add_file ( std::unique_ptr< VW::io::reader > &&  file)
inline
void io_buf::add_file ( std::unique_ptr< VW::io::writer > &&  file)
inline
size_t io_buf::bin_read_fixed ( char *  data,
size_t  len,
const char *  read_message 
)
inline
size_t io_buf::bin_write_fixed ( const char *  data,
size_t  len 
)
inline
size_t io_buf::buf_read ( char *&  pointer,
size_t  n 
)
void io_buf::buf_write ( char *&  pointer,
size_t  n 
)
char* io_buf::buffer_start ( )
inline
bool io_buf::close_file ( )
inline
void io_buf::close_files ( )
inline
size_t io_buf::copy_to ( void *  dst,
size_t  max_size 
)
ssize_t io_buf::fill ( VW::io::reader f)
inline
void io_buf::flush ( )
const std::vector<std::unique_ptr<VW::io::reader> >& io_buf::get_input_files ( ) const
inline
const std::vector<std::unique_ptr<VW::io::writer> >& io_buf::get_output_files ( ) const
inline
uint32_t io_buf::hash ( )
inline
bool io_buf::isbinary ( )
size_t io_buf::num_files ( ) const
inline

This function will return the number of input files AS WELL AS the number of output files. (because of legacy)

size_t io_buf::num_input_files ( ) const
inline
size_t io_buf::num_output_files ( ) const
inline
io_buf& io_buf::operator= ( io_buf other)
delete
io_buf& io_buf::operator= ( io_buf &&  other)
delete
static ssize_t io_buf::read_file ( VW::io::reader f,
void *  buf,
size_t  nbytes 
)
inlinestatic
template<typename T >
T io_buf::read_value ( const char *  debug_name = nullptr)
inline
size_t io_buf::readto ( char *&  pointer,
char  terminal 
)
void io_buf::replace_buffer ( char *  buf,
size_t  capacity 
)
void io_buf::reset_buffer ( )
inline
void io_buf::reset_file ( VW::io::reader f)
inline
void io_buf::set ( char *  p)
inline
size_t io_buf::unflushed_bytes_count ( )
inline
void io_buf::verify_hash ( bool  verify)
inline
template<typename T >
void io_buf::write_value ( const T &  value)
inline

Member Data Documentation

size_t io_buf::current = 0

The documentation for this class was generated from the following file: