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

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.

◆ 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 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 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 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 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 mSize.


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


Copyright © 2011-2024 Spraylight GmbH.