e-CryptIt Engine REALbasic Plugin

AppleSingleDecoderStream Class

To decode AppleSingle and AppleDouble files use the AppleSingleDecoderStream class.

Object
   AppleSingleDecoderStream

class AppleSingleDecoderStream implements

IBinaryStreamWriter

IBlockWriter

Constructors

AppleSingleDecoderStreamOne of 2 Constructors for the AppleSingleDecoderStream class.
AppleSingleDecoderStreamOne of 2 Constructors for the AppleSingleDecoderStream class.

Properties

BufferThis property can be used to obtain or set the MemoryBlock that is used for a shared memory block based decoding.
FileWasAppleDoubleThis property can be used to obtain information if the file was AppleDouble. If a file was AppleDouble then it would only have contained the Resource Fork and MacOS file flags. You would be responsible for copying the datafork from a separate file into the destination file. (AppleDouble formatted files come in a clean Data fork file and the Encoding file which has the ResourceFork and the MacOS File flags).
OriginalNameThis property can be used to obtain the original name of the file. The original name of the file may not be know until at end of the stream, so dont expect this property to actually contain something until after streaming is completed (before the stream is closed though).

Methods

CloseTo close the stream and flush buffers use the close method.
DecodeCall the decode method in a loop to let the stream decode data.
DecodeBlockCall the DecodeBlock method in a loop to let the stream decode data from the shared MemoryBlock.
FinalizeTo finalize the decoding after streaming is done then you need to call the Finalize method, and this needs to be done before the Close method is called.
LastErrorTo obtain the last error that occured then use the LastError function.
WriteCall the write method in a loop to let the stream decode data.
WriteBlockCall the WriteBlock method in a loop to let the stream decode data from the shared MemoryBlock.

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