The Interchange File Format chunk format structure. More...
#include "murl_util_iff.h"
Public Member Functions | |
template<class DataType > | |
DataType * | IffOffset (UInt32 byteOffset) const |
Get a typed pointer from an offset relative to the chunk. More... | |
void | SetFourCC (UInt32 fourCC) |
Set the chunk identifier. More... | |
UInt32 | GetFourCC () const |
Get the chunk identifier. More... | |
void | SetChunkSize (UInt32 size) |
Set the chunk size. More... | |
UInt32 | GetChunkSize () const |
Get the chunk size. More... | |
UInt32 | GetRawSize () const |
Get the chunk size minus sizeof(IffChunk). More... | |
Protected Attributes | |
UInt32 | mFourCC |
The FourCC chunk identifier. | |
UInt32 | mSize |
The size of this chunk minus sizeof(IffChunk). | |
Detailed Description
The Interchange File Format chunk format structure.
Member Function Documentation
◆ IffOffset()
|
inline |
Get a typed pointer from an offset relative to the chunk.
Returns the address of the chunk + offset + sizeof(IffChunk).
- Parameters
-
byteOffset The byte offset.
- Returns
- The typed pointer or null if the offset is greater than the chunk size.
◆ SetFourCC()
|
inline |
Set the chunk identifier.
This method takes care of the system's byte ordering.
- Parameters
-
fourCC The FourCC chunk identifier.
References Murl::Util::IffFourCC(), and mFourCC.
◆ GetFourCC()
|
inline |
Get the chunk identifier.
This method takes care of the system's byte ordering.
- Returns
- The FourCC chunk identifier.
References Murl::Util::IffFourCC(), and mFourCC.
◆ SetChunkSize()
|
inline |
Set the chunk size.
This method takes care of the iff size format.
- Parameters
-
size The byte size of the chunk.
References mSize.
◆ GetChunkSize()
|
inline |
Get the chunk size.
This method takes care of the iff size format.
- Returns
- The byte size of the chunk.
References mSize.
◆ GetRawSize()
|
inline |
Get the chunk size minus sizeof(IffChunk).
- Returns
- The byte size of the chunk minus sizeof(IffChunk).
References mSize.
The documentation for this class was generated from the following file:
- murl_util_iff.h