e-CryptIt Engine REALbasic Plugin

MacBinaryStream Class

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.
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 and allows you to supply MacCreator and MacType codes and Finder flags.
MacBinaryStreamOne of 4 constructors for the MacBinaryStream. This one is used for decoding.

Properties

LengthReturns the length of the actual stream.
OriginalDFLengthReturns the length of the data fork in the original file.
OriginalFileNameReturns the file name of the original file.
OriginalRFLengthReturns the length of the resource fork in the original file.

Methods

CloseTo close the stream. The stream is also closed when it is deconstructed.
DecodeTo write/decode the data into the stream.
EncodeTo read/encode data from the stream.
EOFThis property is used when decoding to determine if the end of the stream is reached.
LastErrorThis property returns the error code for the last operation. Zero means no error, another values depend on the laste executed method.
ReadTo read/encode data from the stream.
SetDecodeDesitinationTo decide where to put the decoded file and what to name it then use the SetDecodeDestination method.
SetDecodeDesitinationTo decide where to put the decoded file and what to name it then use the SetDecodeDestination method.
WriteTo write/decode the data into the stream.

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • Win32 - Windows
  • Linux x86