e-CryptIt Engine REALbasic Plugin

AppleSingle Class

To handle AppleSingle and AppleDouble encoding and decoding.

Note
Due to the nature of the algorithm, there is no OnReadEncoded event for in place decoding.
The reason is that the algorithm requires jumps within the file while decoding it.

Object
   AppleSingle

class AppleSingle

Methods

AbortTo abort decoding, call Abort from the events used by the decoder. To abort encoding, simply return a non-zero value from the encoding event.
DecodeTo start to decode a file. If you inherit from the class then you can receive events from it, such as status event and event to affect the name of the decoded file.
EncodeTo 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.
SetLocationSetLocation can only be called from the OnNameIsKnown event to change the location and name of the output file.

Events

OnNameIsKnownThis event is fired when the name of a decoded file is known.
OnStatusThis event fires events up about the current encoding or decoding status.
OnWriteEncodedThis event is fired when the encoder has encoded data ready to be written to a file or a socket. This event is fired only when nil is used as the output file parameter.

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)

    Unsupported Platforms:

  • Win32 - Windows
  • Linux x86