Unit 'MUIClass.Base' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#MUIClass]

TMUIDataspace.ReadIFF

Adds the contents of an IFF handle from iffparse.library to the dataspace.

Declaration

Source position: MUIClass.Base.pas line 328

public function TMUIDataspace.ReadIFF(

  IFFHandle: Pointer

):Integer;

Arguments

IFFHandle

  

pointer to a struct IFFHandle from iffparse.library/AllocIFF(). The handle must already be open, initialized for reading and positioned on a chunk that was created with WriteIFF.

Function result

Returns 0 on success or some IFFERR_xxx on failure.

Description

As always, objects with the same ID that are already in the dataspace will be replaced.

This method does not look for any chunk types and chunk ids itself. Instead, it expects that you have already located the chunk which contains your data and does nothing but ReadChunkBytes() until all dataspace entries of the current chunk are read.

Do not call ReadIFF if your handle is positioned on chunks that were not written with WriteIFF or strange things may happen!

See also

WriteIFF

  

Writes the contents of a dataspace to an IFF handle of iffparse.library.


Documentation generated on: 2024-11-21