e-CryptIt Engine Xojo Plugin

BinHex Class (console safe)

To handle BinHex encoding and decoding.

Object
   BinHex

class BinHex

Properties

ResourceForkWasSkippedThis 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

OnHqxDecodeThis 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.
OnHqxEncodeThis event is fired when the encoder has encoded data ready to be written to a file or a socket.
OnNameIsKnownThis 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 Carbon
  • MacOS X Cocoa 32 bit
  • Windows 32 bit
  • Linux 32 bit

    Unsupported Platforms:

  • MacOS X Cocoa 64 bit
  • Windows 64 bit
  • Linux 64 bit
  • Linux ARM