interface of i/o stream that support seek
More...
#include <core/storage/fileio/s3_filesys.hpp>
|
virtual void | Seek (size_t pos)=0 |
| seek to certain position of the file
|
|
virtual size_t | Tell (void)=0 |
| tell the position of the stream
|
|
virtual size_t | FileSize (void) const =0 |
|
virtual bool | AtEnd (void) const =0 |
| Returns true if at end of stream.
|
|
virtual size_t | Read (void *ptr, size_t size)=0 |
| reads data from a stream More...
|
|
virtual void | Write (const void *ptr, size_t size)=0 |
| writes data to a stream More...
|
|
virtual void | Close ()=0 |
| closes the stream
|
|
interface of i/o stream that support seek
Definition at line 82 of file s3_filesys.hpp.
◆ FileSize()
virtual size_t turi::fileio::s3::SeekStream::FileSize |
( |
void |
| ) |
const |
|
pure virtual |
◆ Read()
virtual size_t turi::fileio::s3::Stream::Read |
( |
void * |
ptr, |
|
|
size_t |
size |
|
) |
| |
|
pure virtualinherited |
reads data from a stream
- Parameters
-
ptr | pointer to a memory buffer |
size | block size |
- Returns
- the size of data read
◆ Write()
virtual void turi::fileio::s3::Stream::Write |
( |
const void * |
ptr, |
|
|
size_t |
size |
|
) |
| |
|
pure virtualinherited |
writes data to a stream
- Parameters
-
ptr | pointer to a memory buffer |
size | block size |
The documentation for this class was generated from the following file: