[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

This mode causes the parser to progress through the stream step by step,
rather than in the automated fashion provided by IFFPARSE_SCAN.  In this
mode, ParseIFF() will return upon every entry to and departure from a
context.

When the parser enters a context, ParseIFF() will return zero.
CurrentChunk() will report the type and ID of the chunk just entered, and
the stream will be positioned to read the first byte in the chunk.  When
entering a FORM, LIST, CAT or PROP chunk, the longword containing the type
(e.g., ILBM, FTXT, etc.) is read by the parser.  In this case, the stream
will be positioned to read the byte immediately following the type.)

When the parser leaves a context, ParseIFF() will return the value
IFFERR_EOC.  This is not strictly an error, but an indication that you are
about to leave the current context.  CurrentChunk() will report the type
and ID of the chunk you are about to leave.  The stream is not positioned
predictably within the chunk.

The parser does not call any installed chunk handlers when using this mode
(e.g., property chunks declared with PropChunk() will not be collected).

See the example program, Sift.c, for a demonstration of IFFPARSE_RAWSTEP.