Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | List of all members
VW::io::writer Class Referenceabstract

#include <io_adapter.h>

Public Member Functions

 writer ()=default
 
virtual ~writer ()=default
 
virtual ssize_t write (const char *buffer, size_t num_bytes)=0
 
virtual void flush ()
 Writers may implement flush - by default is a noop. More...
 
 writer (writer &other)=delete
 
writeroperator= (writer &other)=delete
 
 writer (writer &&other)=delete
 
writeroperator= (writer &&other)=delete
 

Constructor & Destructor Documentation

◆ writer() [1/3]

VW::io::writer::writer ( )
default

◆ ~writer()

virtual VW::io::writer::~writer ( )
virtualdefault

◆ writer() [2/3]

VW::io::writer::writer ( writer other)
delete

◆ writer() [3/3]

VW::io::writer::writer ( writer &&  other)
delete

Member Function Documentation

◆ flush()

virtual void VW::io::writer::flush ( )
inlinevirtual

Writers may implement flush - by default is a noop.

◆ operator=() [1/2]

writer & VW::io::writer::operator= ( writer &&  other)
delete

◆ operator=() [2/2]

writer & VW::io::writer::operator= ( writer other)
delete

◆ write()

virtual ssize_t VW::io::writer::write ( const char *  buffer,
size_t  num_bytes 
)
pure virtual

Write num_bytes of bytes from buffer into this writer

Parameters
bufferbuffer to write from
num_bytesnumber of bytes of buffer to write. buffer must be at least this large otherwise this is undefined behavior.
Returns
the number of bytes successfully written

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