VST 3 SDK VST 3.7
SDK for developing VST plug-in
ReadOnlyBStream Class Reference

Stream representing a Read-Only subsection of its source stream. More...

#include <vstpresetfile.h>

+ Inheritance diagram for ReadOnlyBStream:

Public Member Functions

 ReadOnlyBStream (IBStream *sourceStream, TSize sourceOffset, TSize sectionSize)
 
virtual ~ReadOnlyBStream ()
 
DECLARE_FUNKNOWN_METHODS tresult read (void *buffer, int32 numBytes, int32 *numBytesRead=nullptr) SMTG_OVERRIDE
 
tresult write (void *buffer, int32 numBytes, int32 *numBytesWritten=nullptr) SMTG_OVERRIDE
 
tresult seek (int64 pos, int32 mode, int64 *result=nullptr) SMTG_OVERRIDE
 
tresult tell (int64 *pos) SMTG_OVERRIDE
 
virtual tresult read (void *buffer, int32 numBytes, int32 *numBytesRead=nullptr)=0
 
virtual tresult write (void *buffer, int32 numBytes, int32 *numBytesWritten=nullptr)=0
 
virtual tresult seek (int64 pos, int32 mode, int64 *result=nullptr)=0
 
virtual tresult tell (int64 *pos)=0
 
- Public Member Functions inherited from FUnknown
virtual tresult queryInterface (const TUID _iid, void **obj)=0
 
virtual uint32 addRef ()=0
 
virtual uint32 release ()=0
 

Protected Attributes

IBStreamsourceStream
 
TSize sourceOffset
 
TSize sectionSize
 
TSize seekPosition
 

Additional Inherited Members

- Public Types inherited from IBStream
enum  IStreamSeekMode
 
- Public Attributes inherited from IBStream
 kIBSeekSet
 
 kIBSeekCur
 
 kIBSeekEnd
 
- Static Public Attributes inherited from IBStream
static const FUID iid
 
- Static Public Attributes inherited from FUnknown
static const FUID iid
 

Detailed Description

Stream representing a Read-Only subsection of its source stream.

Constructor & Destructor Documentation

◆ ReadOnlyBStream()

ReadOnlyBStream ( IBStream sourceStream,
TSize  sourceOffset,
TSize  sectionSize 
)

◆ ~ReadOnlyBStream()

~ReadOnlyBStream ( )
virtual

Member Function Documentation

◆ read()

tresult read ( void *  buffer,
int32  numBytes,
int32 numBytesRead = nullptr 
)
virtual

Implements IBStream.

◆ write()

tresult write ( void *  buffer,
int32  numBytes,
int32 numBytesWritten = nullptr 
)
virtual

Implements IBStream.

◆ seek()

tresult seek ( int64  pos,
int32  mode,
int64 result = nullptr 
)
virtual

Implements IBStream.

◆ tell()

tresult tell ( int64 pos)
virtual

Implements IBStream.

Member Data Documentation

◆ sourceStream

IBStream* sourceStream
protected

◆ sourceOffset

TSize sourceOffset
protected

◆ sectionSize

TSize sectionSize
protected

◆ seekPosition

TSize seekPosition
protected
Empty

Copyright © Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.