resonance 1.0.1
Loading...
Searching...
No Matches
hxilistchunk.h
Go to the documentation of this file.
1#pragma once
2
4
5class HxStream;
6
Header of one RIFF or Standard MIDI File chunk: its name, its size, and whether it is a list.
Definition hxchunkheader.h:21
HxChunkHeader * Next()
Advance to the next chunk and read its header.
HxIListChunk(HxIListChunk *pParent)
Open a reader on the chunks inside the current chunk of another reader, and lock it.
HxIListChunk * mParent
Definition hxilistchunk.h:119
HxChunkHeader * Next(const HxChunkName &name)
Advance until a chunk with the given name is current.
void Init()
Compute mEnd from the enclosing header, lock the parent reader, if any, and reset.
int mLocked
Definition hxilistchunk.h:124
int mStart
Definition hxilistchunk.h:122
HxChunkHeader * CurSubChunkHeader()
Report the current chunk header.
HxChunkHeader * mHeader
Definition hxilistchunk.h:121
HxStream * mStream
Definition hxilistchunk.h:120
~HxIListChunk()
Unlock the parent reader, if any, and free the enclosing header.
void Reset()
Seek back to the first chunk and forget the current one.
HxChunkHeader mCurrent
Definition hxilistchunk.h:125
int mNext
Definition hxilistchunk.h:128
int mHasCurrent
Definition hxilistchunk.h:126
HxIListChunk(HxStream *pStream, bool bReadHeader)
Open a reader on a stream at its read position.
void Lock()
Mark the reader as having a nested reader or chunk open.
int mEnd
Definition hxilistchunk.h:123
int mAtStart
Definition hxilistchunk.h:127
void Unlock()
Clear the mark Lock() sets.
Seekable data source interface, unrelated to IBStream and OBStream.
Definition hxstream.h:35
Four-character name of a RIFF or Standard MIDI File chunk.
Definition hxchunkname.h:19