#include <io_adapter.h>
VW::io::reader::reader |
( |
bool |
is_resettable | ) |
|
|
inline |
virtual VW::io::reader::~reader |
( |
| ) |
|
|
virtualdefault |
VW::io::reader::reader |
( |
reader & |
other | ) |
|
|
delete |
VW::io::reader::reader |
( |
reader && |
other | ) |
|
|
delete |
bool VW::io::reader::is_resettable |
( |
| ) |
const |
|
inline |
- Returns
- true if this reader can be reset, otherwise false
virtual ssize_t VW::io::reader::read |
( |
char * |
buffer, |
|
|
size_t |
num_bytes |
|
) |
| |
|
pure virtual |
Read num_bytes into buffer from this reader
- Parameters
-
buffer | buffer to read into, must be at least num_bytes in size otherwise this is undefined behavior |
num_bytes | the number of bytes to read |
- Returns
- the number of bytes successfully read into buffer
virtual void VW::io::reader::reset |
( |
| ) |
|
|
inlinevirtual |
This function will throw if the reader does not support reseting. Users should check if this io_adapter is resetable before trying to reset.
- Exceptions
-
The documentation for this struct was generated from the following file:
- /__w/vowpal_wabbit/vowpal_wabbit/vowpalwabbit/io/io_adapter.h