The Interchange File Format chunk format structure. More...

#include "murl_util_iff.h"

Inheritance diagram for Murl::Util::IffChunk:

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. More...
 
UInt32 mSize
 The size of this chunk minus sizeof(IffChunk). More...
 

Detailed Description

The Interchange File Format chunk format structure.

Member Function Documentation

◆ IffOffset()

template<class DataType >
DataType* Murl::Util::IffChunk::IffOffset ( UInt32  byteOffset) const
inline

Get a typed pointer from an offset relative to the chunk.

Returns the address of the chunk + offset + sizeof(IffChunk).

Parameters
byteOffsetThe byte offset.
Returns
The typed pointer or null if the offset is greater than the chunk size.

References Murl::Util::IffHeader::mSize, and MURL_VERIFY.

◆ SetFourCC()

void Murl::Util::IffChunk::SetFourCC ( UInt32  fourCC)
inline

Set the chunk identifier.

This method takes care of the system's byte ordering.

Parameters
fourCCThe FourCC chunk identifier.

References Murl::Util::IffFourCC(), and Murl::Util::IffHeader::mFourCC.

◆ GetFourCC()

UInt32 Murl::Util::IffChunk::GetFourCC ( ) const
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 Murl::Util::IffHeader::mFourCC.

◆ SetChunkSize()

void Murl::Util::IffChunk::SetChunkSize ( UInt32  size)
inline

Set the chunk size.

This method takes care of the iff size format.

Parameters
sizeThe byte size of the chunk.

References Murl::Util::IffHeader::mSize.

◆ GetChunkSize()

UInt32 Murl::Util::IffChunk::GetChunkSize ( ) const
inline

Get the chunk size.

This method takes care of the iff size format.

Returns
The byte size of the chunk.

References Murl::Util::IffHeader::mSize.

◆ GetRawSize()

UInt32 Murl::Util::IffChunk::GetRawSize ( ) const
inline

Get the chunk size minus sizeof(IffChunk).

Returns
The byte size of the chunk minus sizeof(IffChunk).

References Murl::Util::IffHeader::mSize.

Member Data Documentation

◆ mFourCC

UInt32 Murl::Util::IffChunk::mFourCC
protected

The FourCC chunk identifier.

◆ mSize

UInt32 Murl::Util::IffChunk::mSize
protected

The size of this chunk minus sizeof(IffChunk).


The documentation for this class was generated from the following file:
  • murl_util_iff.h


Copyright © 2011-2018 Spraylight GmbH.