e-CryptIt Engine Xojo Plugin

MacBinaryStream Class (console safe)

To encode or decode a MacBinary III file then use the MacBinaryStream class.

Object
   MacBinaryStream

class MacBinaryStream implements

IBinaryStreamReader

IBinaryStreamWriter

Constructors

MacBinaryStreamOne of 4 constructors for the MacBinaryStream. This one is used for encoding.
MacBinaryStreamOne of 4 constructors for the MacBinaryStream. This one is used for encoding when then DataFork and the ResourceFork don't come from the same file.
MacBinaryStream
MacBinaryStreamOne of 4 constructors for the MacBinaryStream. This one is used for decoding.

Properties

Length (console safe) Returns the length of the actual stream.
OriginalDFLength (console safe) Returns the length of the data fork in the original file.
OriginalFileName (console safe) Returns the file name of the original file.
OriginalRFLength (console safe) Returns the length of the resource fork in the original file.

Methods

Close (console safe) To close the stream. The stream is also closed when it is deconstructed.
Decode (console safe) To write/decode the data into the stream.
Encode (console safe) To read/encode data from the stream.
EOF (console safe) This property is used when decoding to determine if the end of the stream is reached.
LastError (console safe) This property returns the error code for the last operation. Zero means no error, another values depend on the laste executed method.
Read (console safe) To read/encode data from the stream.
SetDecodeDesitination (console safe) To decide where to put the decoded file and what to name it then use the SetDecodeDestination method.
SetDecodeDesitination (console safe) To decide where to put the decoded file and what to name it then use the SetDecodeDestination method.
Write (console safe) To write/decode the data into the stream.

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit