JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Steinberg::IBStreamer Class Reference

Wrapper class for typed reading/writing from or to IBStream. More...

#include "fstreamer.h"

Inheritance diagram for Steinberg::IBStreamer:
Steinberg::FStreamer

Public Member Functions

 IBStreamer (IBStream *stream, int16 byteOrder=BYTEORDER)
 Constructor for a given IBSTream and a byteOrder.
 
IBStreamgetStream ()
 Returns the associated IBStream.
 
TSize readRaw (void *, TSize) SMTG_OVERRIDE
 Read one buffer of size.
 
TSize writeRaw (const void *, TSize) SMTG_OVERRIDE
 Write one buffer of size.
 
int64 seek (int64, FSeekMode) SMTG_OVERRIDE
 Set file position for stream.
 
int64 tell () SMTG_OVERRIDE
 Return current file position.
 
- Public Member Functions inherited from Steinberg::FStreamer
 FStreamer (int16 byteOrder=BYTEORDER)
 
bool skip (uint32 bytes)
 
bool pad (uint32 bytes)
 
void setByteOrder (int32 e)
 
int32 getByteOrder () const
 
bool writeChar8 (char8)
 
bool readChar8 (char8 &)
 
bool writeUChar8 (unsigned char)
 
bool readUChar8 (unsigned char &)
 
bool writeChar16 (char16 c)
 
bool readChar16 (char16 &c)
 
bool writeInt8 (int8 c)
 
bool readInt8 (int8 &c)
 
bool writeInt8u (uint8 c)
 
bool readInt8u (uint8 &c)
 
bool writeInt16 (int16)
 
bool readInt16 (int16 &)
 
bool writeInt16Array (const int16 *array, int32 count)
 
bool readInt16Array (int16 *array, int32 count)
 
bool writeInt16u (uint16)
 
bool readInt16u (uint16 &)
 
bool writeInt16uArray (const uint16 *array, int32 count)
 
bool readInt16uArray (uint16 *array, int32 count)
 
bool writeInt32 (int32)
 
bool readInt32 (int32 &)
 
bool writeInt32Array (const int32 *array, int32 count)
 
bool readInt32Array (int32 *array, int32 count)
 
bool writeInt32u (uint32)
 
bool readInt32u (uint32 &)
 
bool writeInt32uArray (const uint32 *array, int32 count)
 
bool readInt32uArray (uint32 *array, int32 count)
 
bool writeInt64 (int64)
 
bool readInt64 (int64 &)
 
bool writeInt64Array (const int64 *array, int32 count)
 
bool readInt64Array (int64 *array, int32 count)
 
bool writeInt64u (uint64)
 
bool readInt64u (uint64 &)
 
bool writeInt64uArray (const uint64 *array, int32 count)
 
bool readInt64uArray (uint64 *array, int32 count)
 
bool writeFloat (float)
 
bool readFloat (float &)
 
bool writeFloatArray (const float *array, int32 count)
 
bool readFloatArray (float *array, int32 count)
 
bool writeDouble (double)
 
bool readDouble (double &)
 
bool writeDoubleArray (const double *array, int32 count)
 
bool readDoubleArray (double *array, int32 count)
 
bool writeBool (bool)
 Write one boolean.
 
bool readBool (bool &)
 Read one bool.
 
TSize writeString8 (const char8 *ptr, bool terminate=false)
 a direct output function writing only one string (ascii 8bit)
 
TSize readString8 (char8 *ptr, TSize size)
 a direct input function reading only one string (ascii) (ended by a
or \0 or eof)
 
bool writeStr8 (const char8 *ptr)
 write a string length (strlen) and string itself
 
char8 * readStr8 ()
 read a string length and string text (The return string must be deleted when use is finished)
 
bool writeStringUtf8 (const tchar *ptr)
 always terminated, converts to utf8 if non ascii characters are in string
 
int32 readStringUtf8 (tchar *ptr, int32 maxSize)
 read a UTF8 string
 

Protected Attributes

IBStreamstream
 
- Protected Attributes inherited from Steinberg::FStreamer
int16 byteOrder
 

Additional Inherited Members

- Static Public Member Functions inherited from Steinberg::FStreamer
static int32 getStr8Size (const char8 *ptr)
 returns the size of a saved string
 

Detailed Description

Wrapper class for typed reading/writing from or to IBStream.

Can be used framework-independent in plug-ins.

Definition at line 222 of file fstreamer.h.

Constructor & Destructor Documentation

◆ IBStreamer()

Steinberg::IBStreamer::IBStreamer ( IBStream stream,
int16  byteOrder = BYTEORDER 
)

Constructor for a given IBSTream and a byteOrder.

Definition at line 53 of file fstreamer.cpp.

Member Function Documentation

◆ getStream()

IBStream * Steinberg::IBStreamer::getStream ( )

Returns the associated IBStream.

Definition at line 229 of file fstreamer.h.

◆ readRaw()

TSize Steinberg::IBStreamer::readRaw ( void *  buffer,
TSize  size 
)
virtual

Read one buffer of size.

Implements Steinberg::FStreamer.

Definition at line 59 of file fstreamer.cpp.

◆ seek()

int64 Steinberg::IBStreamer::seek ( int64  pos,
FSeekMode  mode 
)
virtual

Set file position for stream.

Implements Steinberg::FStreamer.

Definition at line 75 of file fstreamer.cpp.

◆ tell()

int64 Steinberg::IBStreamer::tell ( )
virtual

Return current file position.

Implements Steinberg::FStreamer.

Definition at line 83 of file fstreamer.cpp.

◆ writeRaw()

TSize Steinberg::IBStreamer::writeRaw ( const void *  buffer,
TSize  size 
)
virtual

Write one buffer of size.

Implements Steinberg::FStreamer.

Definition at line 67 of file fstreamer.cpp.

Member Data Documentation

◆ stream

IBStream* Steinberg::IBStreamer::stream
protected

Definition at line 238 of file fstreamer.h.


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