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

#include <cRIFF.h>

Inheritance diagram for GrayLib::cRIFFChunk:
GrayLib::cRIFFBlock Gray::cRefBase GrayLib::cRIFFHead IUnknown

Public Member Functions

 cRIFFChunk (FOURCC nTypeChunk, RIFF_SIZE_t nDataSize)
 
virtual ~cRIFFChunk ()
 
virtual bool isListType () const
 
void * get_Data () const
 
- Public Member Functions inherited from GrayLib::cRIFFBlock
 cRIFFBlock (FOURCC nTypeChunk, RIFF_SIZE_t nSize)
 
virtual ~cRIFFBlock ()
 
HRESULT WriteStream (cStreamOutput *pFile) const
 
- Public Member Functions inherited from Gray::cRefBase
 cRefBase (int iRefCount=0) noexcept
 
virtual ~cRefBase ()
 
int get_RefCount () const noexcept
 
HASHCODE_t get_HashCode () const noexcept
 
 STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept
 
virtual void onFinalRelease ()
 
bool isValidObj () const noexcept
 
 STDMETHOD_ (ULONG, AddRef)(void) override
 
 STDMETHOD_ (ULONG, Release)(void) override
 
STDMETHOD() QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override
 
void IncRefCount ()
 
void DecRefCount ()
 
bool isStaticConstruct () const noexcept
 
void StaticConstruct ()
 
void StaticDestruct ()
 
bool isDestructing () noexcept
 
void SetDestructing ()
 
- Public Member Functions inherited from GrayLib::cRIFFHead
 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

cHeapBlock m_Data
 the chunk data payload. More...
 
- Public Attributes inherited from GrayLib::cRIFFHead
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...
 

Protected Member Functions

virtual HRESULT ReadStreamBody (cStreamInput &strIn)
 
virtual HRESULT WriteStreamBody (cStreamOutput *pFile) const
 

Additional Inherited Members

- Static Public Member Functions inherited from GrayLib::cRIFFBlock
static HRESULT GRAYCALL ReadStreamUnk (cStreamInput &strIn, cRefPtr< cRIFFBlock > *ppRet)
 

Detailed Description

A RIFF chunk/data block. Holds a m_Data payload that is loaded on demand.

Constructor & Destructor Documentation

◆ cRIFFChunk()

GrayLib::cRIFFChunk::cRIFFChunk ( FOURCC  nTypeChunk,
RIFF_SIZE_t  nDataSize 
)
inline

◆ ~cRIFFChunk()

virtual GrayLib::cRIFFChunk::~cRIFFChunk ( )
inlinevirtual

Member Function Documentation

◆ get_Data()

void* GrayLib::cRIFFChunk::get_Data ( ) const
inline

◆ isListType()

virtual bool GrayLib::cRIFFChunk::isListType ( ) const
inlinevirtual

Implements GrayLib::cRIFFBlock.

◆ ReadStreamBody()

HRESULT GrayLib::cRIFFChunk::ReadStreamBody ( cStreamInput strIn)
protectedvirtual

Read data body.

Implements GrayLib::cRIFFBlock.

◆ WriteStreamBody()

HRESULT GrayLib::cRIFFChunk::WriteStreamBody ( cStreamOutput pFile) const
protectedvirtual

Implements GrayLib::cRIFFBlock.

Member Data Documentation

◆ m_Data

cHeapBlock GrayLib::cRIFFChunk::m_Data

the chunk data payload.


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