|
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 |
Byteorder-aware base class for typed stream i/o. More...
#include "fstreamer.h"
Public Member Functions | |
| FStreamer (int16 byteOrder=BYTEORDER) | |
| bool | skip (uint32 bytes) |
| bool | pad (uint32 bytes) |
Implementing class must override. | |
| virtual TSize | readRaw (void *, TSize)=0 |
| Read one buffer of size. | |
| virtual TSize | writeRaw (const void *, TSize)=0 |
| Write one buffer of size. | |
| virtual int64 | seek (int64, FSeekMode)=0 |
| Set file position for stream. | |
| virtual int64 | tell ()=0 |
| Return current file position. | |
Streams are byteOrder aware. | |
| void | setByteOrder (int32 e) |
| int32 | getByteOrder () const |
read and write int8 and char. | |
| 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) |
read and write int16. | |
| 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) |
read and write int32. | |
| 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) |
read and write int64. | |
| 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) |
read and write float and float array. | |
| bool | writeFloat (float) |
| bool | readFloat (float &) |
| bool | writeFloatArray (const float *array, int32 count) |
| bool | readFloatArray (float *array, int32 count) |
read and write double and double array. | |
| bool | writeDouble (double) |
| bool | readDouble (double &) |
| bool | writeDoubleArray (const double *array, int32 count) |
| bool | readDoubleArray (double *array, int32 count) |
read and write Boolean. | |
| bool | writeBool (bool) |
| Write one boolean. | |
| bool | readBool (bool &) |
| Read one bool. | |
Protected Attributes | |
| int16 | byteOrder |
read and write Strings. | |
| 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 | |
| static int32 | getStr8Size (const char8 *ptr) |
| returns the size of a saved string | |
Byteorder-aware base class for typed stream i/o.
Definition at line 57 of file fstreamer.h.
| Steinberg::FStreamer::FStreamer | ( | int16 | byteOrder = BYTEORDER | ) |
Definition at line 140 of file fstreamer.cpp.
|
virtual |
Definition at line 62 of file fstreamer.h.
| int32 Steinberg::FStreamer::getByteOrder | ( | ) | const |
Definition at line 75 of file fstreamer.h.
|
static |
returns the size of a saved string
Definition at line 708 of file fstreamer.cpp.
| bool Steinberg::FStreamer::pad | ( | uint32 | bytes | ) |
Definition at line 743 of file fstreamer.cpp.
Read one bool.
Definition at line 563 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readChar16 | ( | char16 & | c | ) |
Definition at line 178 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readChar8 | ( | char8 & | c | ) |
Definition at line 152 of file fstreamer.cpp.
Definition at line 528 of file fstreamer.cpp.
Definition at line 552 of file fstreamer.cpp.
Definition at line 485 of file fstreamer.cpp.
Definition at line 509 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt16 | ( | int16 & | i | ) |
Definition at line 224 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt16Array | ( | int16 * | array, |
| int32 | count | ||
| ) |
Definition at line 248 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt16u | ( | uint16 & | i | ) |
Definition at line 267 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt16uArray | ( | uint16 * | array, |
| int32 | count | ||
| ) |
Definition at line 291 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt32 | ( | int32 & | i | ) |
Definition at line 311 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt32Array | ( | int32 * | array, |
| int32 | count | ||
| ) |
Definition at line 335 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt32u | ( | uint32 & | i | ) |
Definition at line 354 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt32uArray | ( | uint32 * | array, |
| int32 | count | ||
| ) |
Definition at line 378 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt64 | ( | int64 & | i | ) |
Definition at line 398 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt64Array | ( | int64 * | array, |
| int32 | count | ||
| ) |
Definition at line 422 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt64u | ( | uint64 & | i | ) |
Definition at line 441 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt64uArray | ( | uint64 * | array, |
| int32 | count | ||
| ) |
Definition at line 465 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt8 | ( | int8 & | c | ) |
Definition at line 197 of file fstreamer.cpp.
| bool Steinberg::FStreamer::readInt8u | ( | uint8 & | c | ) |
Definition at line 209 of file fstreamer.cpp.
|
pure virtual |
Read one buffer of size.
Implemented in Steinberg::IBStreamer.
| char8 * Steinberg::FStreamer::readStr8 | ( | ) |
read a string length and string text (The return string must be deleted when use is finished)
Definition at line 714 of file fstreamer.cpp.
| TSize Steinberg::FStreamer::readString8 | ( | char8 * | ptr, |
| TSize | size | ||
| ) |
a direct input function reading only one string (ascii) (ended by a
or \0 or eof)
Definition at line 588 of file fstreamer.cpp.
| int32 Steinberg::FStreamer::readStringUtf8 | ( | tchar * | ptr, |
| int32 | maxSize | ||
| ) |
read a UTF8 string
Definition at line 643 of file fstreamer.cpp.
Definition at line 164 of file fstreamer.cpp.
|
pure virtual |
Set file position for stream.
Implemented in Steinberg::IBStreamer.
| void Steinberg::FStreamer::setByteOrder | ( | int32 | e | ) |
Definition at line 74 of file fstreamer.h.
| bool Steinberg::FStreamer::skip | ( | uint32 | bytes | ) |
Definition at line 731 of file fstreamer.cpp.
|
pure virtual |
Return current file position.
Implemented in Steinberg::IBStreamer.
Write one boolean.
Definition at line 572 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeChar16 | ( | char16 | c | ) |
Definition at line 170 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeChar8 | ( | char8 | c | ) |
Definition at line 146 of file fstreamer.cpp.
Definition at line 520 of file fstreamer.cpp.
Definition at line 541 of file fstreamer.cpp.
Definition at line 477 of file fstreamer.cpp.
Definition at line 498 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt16 | ( | int16 | i | ) |
Definition at line 216 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt16Array | ( | const int16 * | array, |
| int32 | count | ||
| ) |
Definition at line 237 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt16u | ( | uint16 | i | ) |
Definition at line 259 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt16uArray | ( | const uint16 * | array, |
| int32 | count | ||
| ) |
Definition at line 280 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt32 | ( | int32 | i | ) |
Definition at line 303 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt32Array | ( | const int32 * | array, |
| int32 | count | ||
| ) |
Definition at line 324 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt32u | ( | uint32 | i | ) |
Definition at line 346 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt32uArray | ( | const uint32 * | array, |
| int32 | count | ||
| ) |
Definition at line 367 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt64 | ( | int64 | i | ) |
Definition at line 390 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt64Array | ( | const int64 * | array, |
| int32 | count | ||
| ) |
Definition at line 411 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt64u | ( | uint64 | i | ) |
Definition at line 433 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt64uArray | ( | const uint64 * | array, |
| int32 | count | ||
| ) |
Definition at line 454 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt8 | ( | int8 | c | ) |
Definition at line 191 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeInt8u | ( | uint8 | c | ) |
Definition at line 203 of file fstreamer.cpp.
|
pure virtual |
Write one buffer of size.
Implemented in Steinberg::IBStreamer.
| bool Steinberg::FStreamer::writeStr8 | ( | const char8 * | ptr | ) |
write a string length (strlen) and string itself
Definition at line 695 of file fstreamer.cpp.
| TSize Steinberg::FStreamer::writeString8 | ( | const char8 * | ptr, |
| bool | terminate = false |
||
| ) |
a direct output function writing only one string (ascii 8bit)
Definition at line 578 of file fstreamer.cpp.
| bool Steinberg::FStreamer::writeStringUtf8 | ( | const tchar * | ptr | ) |
always terminated, converts to utf8 if non ascii characters are in string
Definition at line 616 of file fstreamer.cpp.
Definition at line 158 of file fstreamer.cpp.
|
protected |
Definition at line 171 of file fstreamer.h.