Manages a block of memory, for plug-in settings store/recall.
More...
#include <IPlugStructs.h>
Manages a block of memory, for plug-in settings store/recall.
Definition at line 111 of file IPlugStructs.h.
| IByteChunk::IByteChunk |
( |
| ) |
|
|
inline |
◆ ~IByteChunk()
| IByteChunk::~IByteChunk |
( |
| ) |
|
|
inline |
◆ Clear()
| void IByteChunk::Clear |
( |
| ) |
|
|
inline |
◆ Get()
template<class T >
| int IByteChunk::Get |
( |
T * |
pDst, |
|
|
int |
startPos |
|
) |
| const |
|
inline |
◆ GetBytes()
| int IByteChunk::GetBytes |
( |
void * |
pDst, |
|
|
int |
nBytesToCopy, |
|
|
int |
startPos |
|
) |
| const |
|
inline |
◆ GetData() [1/2]
| uint8_t * IByteChunk::GetData |
( |
| ) |
|
|
inline |
◆ GetData() [2/2]
| const uint8_t * IByteChunk::GetData |
( |
| ) |
const |
|
inline |
Gets a const ptr to the chunk data.
- Returns
- const uint8_t* const Ptr to the chunk data
Definition at line 249 of file IPlugStructs.h.
◆ GetIPlugVerFromChunk()
| static int IByteChunk::GetIPlugVerFromChunk |
( |
const IByteChunk & |
chunk, |
|
|
int & |
position |
|
) |
| |
|
inlinestatic |
Helper method to retrieve the IPlug version number from the beginning of the byte chunk.
- Parameters
-
| chunk | The incoming byte chunk that contains the version number |
| position | The position (in bytes) to start looking |
- Returns
- The IPlug version number, retrieved from the chunk, or 0 if it failed
Definition at line 132 of file IPlugStructs.h.
References Get().
Referenced by IPluginBase::LoadBankFromFXB(), and IPluginBase::LoadPresetFromFXP().
◆ GetStr()
| int IByteChunk::GetStr |
( |
WDL_String & |
str, |
|
|
int |
startPos |
|
) |
| const |
|
inline |
◆ InitChunkWithIPlugVer()
| static void IByteChunk::InitChunkWithIPlugVer |
( |
IByteChunk & |
chunk | ) |
|
|
inlinestatic |
◆ IsEqual()
| bool IByteChunk::IsEqual |
( |
IByteChunk & |
otherChunk | ) |
const |
|
inline |
Compares the size & values of the data of another chunk with this one.
- Parameters
-
| otherChunk | The chunk to compare with |
- Returns
true if the chunks are equal
Definition at line 257 of file IPlugStructs.h.
References Size().
◆ Put()
template<class T >
| int IByteChunk::Put |
( |
const T * |
pVal | ) |
|
|
inline |
◆ PutBytes()
| int IByteChunk::PutBytes |
( |
const void * |
pSrc, |
|
|
int |
nBytesToCopy |
|
) |
| |
|
inline |
◆ PutChunk()
| int IByteChunk::PutChunk |
( |
const IByteChunk * |
pRHS | ) |
|
|
inline |
◆ PutStr()
| int IByteChunk::PutStr |
( |
const char * |
str | ) |
|
|
inline |
◆ Resize()
| int IByteChunk::Resize |
( |
int |
newSize | ) |
|
|
inline |
◆ Size()
| int IByteChunk::Size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: