Stream representing a Read-Only subsection of its source stream.
More...
#include "vstpresetfile.h"
|
| | ReadOnlyBStream (IBStream *sourceStream, TSize sourceOffset, TSize sectionSize) |
| |
| DECLARE_FUNKNOWN_METHODS tresult PLUGIN_API | read (void *buffer, int32 numBytes, int32 *numBytesRead=nullptr) SMTG_OVERRIDE |
| | Reads binary data from stream.
|
| |
| tresult PLUGIN_API | write (void *buffer, int32 numBytes, int32 *numBytesWritten=nullptr) SMTG_OVERRIDE |
| | Writes binary data to stream.
|
| |
| tresult PLUGIN_API | seek (int64 pos, int32 mode, int64 *result=nullptr) SMTG_OVERRIDE |
| | Sets stream read-write position.
|
| |
| tresult PLUGIN_API | tell (int64 *pos) SMTG_OVERRIDE |
| | Gets current stream read-write position.
|
| |
| virtual tresult PLUGIN_API | queryInterface (const TUID _iid, void **obj)=0 |
| | Query for a pointer to the specified interface.
|
| |
| virtual uint32 PLUGIN_API | addRef ()=0 |
| | Adds a reference and returns the new reference count.
|
| |
| virtual uint32 PLUGIN_API | release ()=0 |
| | Releases a reference and returns the new reference count.
|
| |
Stream representing a Read-Only subsection of its source stream.
Definition at line 258 of file vstpresetfile.h.
◆ ReadOnlyBStream()
| Steinberg::Vst::ReadOnlyBStream::ReadOnlyBStream |
( |
IBStream * |
sourceStream, |
|
|
TSize |
sourceOffset, |
|
|
TSize |
sectionSize |
|
) |
| |
◆ ~ReadOnlyBStream()
| Steinberg::Vst::ReadOnlyBStream::~ReadOnlyBStream |
( |
| ) |
|
|
virtual |
◆ read()
| tresult PLUGIN_API Steinberg::Vst::ReadOnlyBStream::read |
( |
void * |
buffer, |
|
|
int32 |
numBytes, |
|
|
int32 * |
numBytesRead = nullptr |
|
) |
| |
|
virtual |
Reads binary data from stream.
- Parameters
-
| buffer | : destination buffer |
| numBytes | : amount of bytes to be read |
| numBytesRead | : result - how many bytes have been read from stream (set to 0 if this is of no interest) |
Implements Steinberg::IBStream.
Definition at line 775 of file vstpresetfile.cpp.
◆ seek()
| tresult PLUGIN_API Steinberg::Vst::ReadOnlyBStream::seek |
( |
int64 |
pos, |
|
|
int32 |
mode, |
|
|
int64 * |
result = nullptr |
|
) |
| |
|
virtual |
Sets stream read-write position.
- Parameters
-
| pos | : new stream position (dependent on mode) |
| mode | : value of enum IStreamSeekMode |
| result | : new seek position (set to 0 if this is of no interest) |
Implements Steinberg::IBStream.
Definition at line 815 of file vstpresetfile.cpp.
◆ tell()
| tresult PLUGIN_API Steinberg::Vst::ReadOnlyBStream::tell |
( |
int64 * |
pos | ) |
|
|
virtual |
◆ write()
| tresult PLUGIN_API Steinberg::Vst::ReadOnlyBStream::write |
( |
void * |
buffer, |
|
|
int32 |
numBytes, |
|
|
int32 * |
numBytesWritten = nullptr |
|
) |
| |
|
virtual |
Writes binary data to stream.
- Parameters
-
| buffer | : source buffer |
| numBytes | : amount of bytes to write |
| numBytesWritten | : result - how many bytes have been written to stream (set to 0 if this is of no interest) |
Implements Steinberg::IBStream.
Definition at line 805 of file vstpresetfile.cpp.
◆ sectionSize
| TSize Steinberg::Vst::ReadOnlyBStream::sectionSize |
|
protected |
◆ seekPosition
| TSize Steinberg::Vst::ReadOnlyBStream::seekPosition |
|
protected |
◆ sourceOffset
| TSize Steinberg::Vst::ReadOnlyBStream::sourceOffset |
|
protected |
◆ sourceStream
| IBStream* Steinberg::Vst::ReadOnlyBStream::sourceStream |
|
protected |
The documentation for this class was generated from the following files:
- juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vstpresetfile.h
- juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vstpresetfile.cpp