e-CryptIt Engine REALbasic Plugin

MacBinaryStream.Constructor Constructor

One of 4 constructors for the MacBinaryStream. This one is used for encoding when then DataFork and the ResourceFork don't come from the same file and allows you to supply MacCreator and MacType codes and Finder flags.

Constructor(
   sourceDF as FolderItem,
   sourceRF as FolderItem,
   macCreator as String,
   macType as String,
   finderFlagsHi as Integer,
   finderFlagsLow as Integer,
   extendedFinderFlags as Integer)

Parameters

sourceDF
A valid FolderItem instance that points to a data fork of the file to be encoded.
sourceRF
A valid FolderItem instance that points to a resource fork stored in a data fork of the file to be encoded.
macCreator
A 4 letter MacCreator code.
macType
A 4 letter MacType code.
finderFlagsHi
The High order part of the Mac Finder flags.
finderFlagsLow
The Low order part of the Mac Finder flags.
extendedFinderFlags
The extended Mac finder flags.

Remarks

Note: MacCreator codes should be in US-ASCII encoding. If passing in any other encoding then there is no guaranty that the type and creator code is the same as you actually wanted when opening it on MacOS.

See Also

MacBinaryStream Class