TAbstractResourceWriter.Write procedure
Writes resources to a stream
Declaration
procedure Write(aResources: TResources; aStream: TStream); virtual
; abstractArguments
aResources | The TResources object to be written to the stream |
aStream | The stream which resources must be written to |
Description
A TResources object invokes this method when it needs to be written to a stream, passing itself as the aResources parameter and the stream as the aStream parameter.
aStream position is already correctly set: the writer must start to write from there.
A writer must write data in the way specified by the format it supports: usually this means writing a header and all resources contained in the TResources object.
For each resource, a writer should write some information about the resource (like type and name) in a way defined by the format it implements, and the resource data, which is accessible by RawData property of the resource.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
