[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Write resources to a new stream.
Source position: objects.pp line 508
function TResourceFile.SwitchTo( |
AStream: PStream; |
Pack: Boolean |
):PStream; |
SwitchToswitches to a new stream to hold the resources in. AStreamwill be the new stream after the call to SwitchTo.
If Packis true, then all the known resources will be copied from the current stream to the new stream (AStream). If Packis False, then only the current resource is copied.
The return value is the value of the original stream: Stream.
The Modifiedflag is set as a consequence of this call.
Errors returned can be those of TStream.Readand TStream.Write.
|
Writes the resources to the stream. |