Vowpal Wabbit
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
io_adapter.h File Reference
#include <functional>
#include <memory>
#include <string>
#include <vector>
#include <unistd.h>

Classes

class  VW::io::details::socket_closer
 
class  VW::io::reader
 
class  VW::io::writer
 
class  VW::io::socket
 

Namespaces

namespace  VW
 
namespace  VW::io
 
namespace  VW::io::details
 

Typedefs

using VW::io::write_func_t = ssize_t(*)(void *, const char *, size_t)
 

Functions

std::unique_ptr< writer > VW::io::open_file_writer (const std::string &file_path)
 
std::unique_ptr< reader > VW::io::open_file_reader (const std::string &file_path)
 
std::unique_ptr< writer > VW::io::open_compressed_file_writer (const std::string &file_path)
 
std::unique_ptr< reader > VW::io::open_compressed_file_reader (const std::string &file_path)
 
std::unique_ptr< reader > VW::io::open_compressed_stdin ()
 
std::unique_ptr< writer > VW::io::open_compressed_stdout ()
 
std::unique_ptr< reader > VW::io::open_stdin ()
 
std::unique_ptr< writer > VW::io::open_stdout ()
 
std::unique_ptr< writer > VW::io::create_custom_writer (void *context, write_func_t write_func)
 
std::unique_ptr< socket > VW::io::wrap_socket_descriptor (int fd)
 
std::unique_ptr< writer > VW::io::create_vector_writer (std::shared_ptr< std::vector< char > > &buffer)
 
std::unique_ptr< reader > VW::io::create_buffer_view (const char *data, size_t len)