To start to encode a file. If you inherit from the class then you can receive events from it, such as status event and event for in place encoding.
To encode a file you need to create a new class and subclass of the MacBinary class so you can receive the class events. When data parts are ready to be written to a file or to a socket then the OnMacBinaryEncode event is fired. That's where you should write the data to a file or handle it in any desired way.
It is wise to open the file output stream before you call the encode function, and to close it after it.
Returns an error code, zero for no error.
-43 Invalid folderitem
-44 Internal error
-100 Decoding was aborted