e-CryptIt Engine Xojo Plugin |
|
BinHex Class (console safe)
To handle BinHex encoding and decoding.
Object
BinHex
class BinHex
Properties
ResourceForkWasSkipped | This property returns true if the ResourceFork was skipped when decoding a BinHex-ed file on Windows operating systems. (On MacOS systems it will always return false) |
Methods
Abort (console safe) | To abort decoding, call Abort from the events used by the decoder.
To abort encoding, simply return a non-zero value from the encoding event. |
Decode (console safe) | To start to decode a file. Before calling it you should open the input file and when the OnHqxDecode event is fired then you should read the same amount of bytes from the input stream as asked by the event. |
Decode (console safe) | To start to decode a file. Before calling it you should open the input file and when the OnHqxDecode event is fired then you should read the same amount of bytes from the input stream as asked by the event. |
Encode (console safe) | To start to encode a file.
To encode a file you need to create a new class and subclass of the BinHex 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 OnHqxEncode 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.
|
Encode (console safe) | To start to encode a file.
To encode a file you need to create a new class and subclass of the BinHex 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 OnHqxEncode 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.
|
Events
OnHqxDecode | This event is fired when the decoder wants more data.
Do not send more data than what is asked. You may send less, e.g. if it's the end of the file. |
OnHqxEncode | This event is fired when the encoder has encoded data ready to be written to a file or a socket. |
OnNameIsKnown | This event is fired if FireNameEvent was set to True in the Decode method.
It is fired as soon as the file name of the original file is known.
It allows you to modify the file name and its location before its written to disk. |
Supported Platforms:
MacOS X CarbonMacOS X Cocoa 32 bitWindows 32 bitLinux 32 bitUnsupported Platforms:
MacOS X Cocoa 64 bitWindows 64 bitLinux 64 bitLinux ARM