Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cRIFFHead Class Reference

#include <cRIFFFormat.h>

Inheritance diagram for GrayLib::cRIFFHead:
GrayLib::cRIFFBlock GrayLib::cRIFFHeadList GrayLib::cRIFFChunk GrayLib::cRIFFList GrayLib::cRIFFHeadX

Public Member Functions

 cRIFFHead (FOURCC nTypeChunk=FOURCC_0, RIFF_SIZE_t nDataSize=0)
 
bool isListType () const
 
bool isPadded () const
 
RIFF_SIZE_t get_RawSize () const
 
RIFF_SIZE_t get_DataSize () const
 
HRESULT WriteChunk (cStreamOutput *pOut) const
 
HRESULT ReadChunk (cStreamInput &stmIn)
 

Public Attributes

FOURCC m_nTypeChunk
 chunk ID. i.e. 'RIFF','LIST','FORM' FOURCC_RIFF or 'data' for non list (MMCKINFO ckid) More...
 
RIFF_SIZE_t m_nDataSize
 chunk size (bytes) including m_nTypeList not including align/pad byte. (MMCKINFO cksize) More...
 

Detailed Description

sizeof(cRIFFHead) == 8 = 4+4

Constructor & Destructor Documentation

◆ cRIFFHead()

GrayLib::cRIFFHead::cRIFFHead ( FOURCC  nTypeChunk = FOURCC_0,
RIFF_SIZE_t  nDataSize = 0 
)
inline

Member Function Documentation

◆ get_DataSize()

RIFF_SIZE_t GrayLib::cRIFFHead::get_DataSize ( ) const
inline

Size of the data payload only.

◆ get_RawSize()

RIFF_SIZE_t GrayLib::cRIFFHead::get_RawSize ( ) const
inline

◆ isListType()

bool GrayLib::cRIFFHead::isListType ( ) const
inline

◆ isPadded()

bool GrayLib::cRIFFHead::isPadded ( ) const
inline

storage on disk is always padded even.

◆ ReadChunk()

HRESULT GrayLib::cRIFFHead::ReadChunk ( cStreamInput stmIn)
Returns
size bytes of the read.

◆ WriteChunk()

HRESULT GrayLib::cRIFFHead::WriteChunk ( cStreamOutput pOut) const
Returns
size bytes of the write.

Member Data Documentation

◆ m_nDataSize

RIFF_SIZE_t GrayLib::cRIFFHead::m_nDataSize

chunk size (bytes) including m_nTypeList not including align/pad byte. (MMCKINFO cksize)

◆ m_nTypeChunk

FOURCC GrayLib::cRIFFHead::m_nTypeChunk

chunk ID. i.e. 'RIFF','LIST','FORM' FOURCC_RIFF or 'data' for non list (MMCKINFO ckid)


The documentation for this class was generated from the following files: