VSTGUI  4.10
Graphical User Interface Framework not only for VST plugins
SeekableStream Class Referenceabstract

Seekable stream interface. More...

+ Inheritance diagram for SeekableStream:

Public Types

enum  SeekMode { kSeekSet, kSeekCurrent, kSeekEnd }
 

Public Member Functions

virtual ~SeekableStream () noexcept=default
 
virtual int64_t seek (int64_t pos, SeekMode mode)=0
 returns -1 if seek fails otherwise new position More...
 
virtual int64_t tell () const =0
 
virtual void rewind ()=0
 

Detailed Description

Seekable stream interface.

Member Enumeration Documentation

◆ SeekMode

enum SeekMode
Enumerator
kSeekSet 
kSeekCurrent 
kSeekEnd 

Constructor & Destructor Documentation

◆ ~SeekableStream()

virtual ~SeekableStream ( )
virtualdefaultnoexcept

Member Function Documentation

◆ rewind()

virtual void rewind ( )
pure virtual

◆ seek()

virtual int64_t seek ( int64_t  pos,
SeekMode  mode 
)
pure virtual

returns -1 if seek fails otherwise new position

Implemented in CResourceInputStream, CFileStream, and CMemoryStream.

◆ tell()

virtual int64_t tell ( ) const
pure virtual

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