Helper class to maintain a read position whilst extracting data from an IByteChunk.
More...
#include <IPlugStructs.h>
Helper class to maintain a read position whilst extracting data from an IByteChunk.
Definition at line 331 of file IPlugStructs.h.
template<class T >
int IByteChunkReader::Get |
( |
T * |
pDst | ) |
|
|
inline |
Copy arbitary typed data out of the managed IByteChunk at the current position and update the position.
- Template Parameters
-
T | type of the variable to get |
- Parameters
-
pDst | Pointer to the destination where the value will be stored |
- Returns
- int Next read position in the IByteChunk
Definition at line 355 of file IPlugStructs.h.
int IByteChunkReader::GetBytes |
( |
void * |
pBuf, |
|
|
int |
nBytesToCopy |
|
) |
| |
|
inline |
Copy nBytesToCopy
bytes from the managed IByteChunk into pBuf
.
- Parameters
-
pBuf | Destination buffer |
nBytesToCopy | Number of bytes to copy |
- Returns
- Next read position in the IByteChunk
Definition at line 344 of file IPlugStructs.h.
int IByteChunkReader::GetStr |
( |
WDL_String & |
str | ) |
|
|
inline |
Retrieve a string from the managed IByteChunk and put it in str
.
- Parameters
-
str | Destination for the string |
- Returns
- int Next read position in the IByteChunk
Definition at line 364 of file IPlugStructs.h.
void IByteChunkReader::Seek |
( |
int |
pos | ) |
|
|
inline |
int IByteChunkReader::Tell |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: