Vowpal Wabbit
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 &other)=delete
 
io_bufoperator= (io_buf &other)=delete
 
 io_buf (io_buf &&other)=delete
 
io_bufoperator= (io_buf &&other)=delete
 
 ~io_buf ()
 
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)
 
 io_buf ()
 
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 ()
 
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)
 
static ssize_t write_file (VW::io::writer *f, void *buf, size_t nbytes)
 
static ssize_t write_file (VW::io::writer *f, const void *buf, size_t nbytes)
 

Public Attributes

std::vector< std::unique_ptr< VW::io::reader > > input_files
 
std::vector< std::unique_ptr< VW::io::writer > > output_files
 
size_t current
 

Constructor & Destructor Documentation

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

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 ( )
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
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
static ssize_t io_buf::write_file ( VW::io::writer f,
void *  buf,
size_t  nbytes 
)
inlinestatic
static ssize_t io_buf::write_file ( VW::io::writer f,
const void *  buf,
size_t  nbytes 
)
inlinestatic

Member Data Documentation

size_t io_buf::current
std::vector<std::unique_ptr<VW::io::reader> > io_buf::input_files
std::vector<std::unique_ptr<VW::io::writer> > io_buf::output_files

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