Turi Create  4.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
turi::fileio::s3::SeekStream Class Referenceabstract

interface of i/o stream that support seek More...

#include <core/storage/fileio/s3_filesys.hpp>

Public Member Functions

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
 

Detailed Description

interface of i/o stream that support seek

Definition at line 82 of file s3_filesys.hpp.

Member Function Documentation

◆ FileSize()

virtual size_t turi::fileio::s3::SeekStream::FileSize ( void  ) const
pure virtual

tell the physical size of the stream

Implemented in turi::fileio::s3::AWSReadStreamBase.

◆ Read()

virtual size_t turi::fileio::s3::Stream::Read ( void *  ptr,
size_t  size 
)
pure virtualinherited

reads data from a stream

Parameters
ptrpointer to a memory buffer
sizeblock 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
ptrpointer to a memory buffer
sizeblock size

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