#include <io_adapter.h>
◆ reader() [1/3]
VW::io::reader::reader |
( |
bool |
is_resettable | ) |
|
|
inline |
◆ ~reader()
virtual VW::io::reader::~reader |
( |
| ) |
|
|
virtualdefault |
◆ reader() [2/3]
VW::io::reader::reader |
( |
reader & |
other | ) |
|
|
delete |
◆ reader() [3/3]
VW::io::reader::reader |
( |
reader && |
other | ) |
|
|
delete |
◆ is_resettable()
bool VW::io::reader::is_resettable |
( |
| ) |
const |
|
inline |
- Returns
- true if this reader can be reset, otherwise false
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ read()
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
◆ reset()
virtual void VW::io::reader::reset |
( |
| ) |
|
|
virtual |
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 class was generated from the following file:
- /nix/store/2saqbz278bj3pvhbfxlcc50cjbvs3h0h-source/vowpalwabbit/io/include/vw/io/io_adapter.h