e-CryptIt Engine Xojo Plugin

MacBinary.Decode Method (console safe)

To start to decode a file. Before calling this function you should open the input file, and when the MacBinary fires the OnMacBinaryDecode event then you should read the same amount of bytes as the event asks for from the input stream.

Decode(
   source as FolderItem,
   DefaultLocation as Boolean) as Integer

Parameters

source
The file to decode.
DefaultLocation
Determines if the MacBinary class should write the file at the same path as the source and with its original name.
If False then the OnNameIsKnown event, where you can modify the output name and location, will be fired as soon as the file's original name is known.

Returns

Integer

Remarks

Returns an error code, zero for no error.
-43 Invalid folderitem
-44 Internal error
-100 Decoding was aborted

See Also

MacBinary Class