e-CryptIt Engine - Compression Xojo Plugin |

# ZStream Class (console safe)

To handle zip compression and decompression on files (.gz format).
Note: This class has been replaced by the ZStreamWriter and the ZStreamReader classes. This class is provided here because there are still some 3rd party kits that use this class. If you are developing a new product and using REALbasic 5.5 or later then it is highly recommended that you use the new and more advanced classes.

Object
ZStream

class ZStream implements

IStreamWriter

IStreamReader

#### Constructors

ZStream (console safe) | One of two constructors for the ZStream class.
ZStream (console safe) | One of two constructors for the ZStream class.

#### Properties

ErrorValue (console safe) | This property returns the error code for the last operation. Zero means no error, another value means a file error. The code used by the File Manager, see Inside Macintosh at the Apple Website.
Position (console safe) | Returns the cursor position within the stream.

#### Methods

Close (console safe) | To close the stream. The stream is also closed when it is deconstructed.
EOF (console safe) | This property is used when decoding to determine if the end of the stream is reached.
shared GetZipEngineHandle | Returns handle to the internal Zip engine for other plugins to use.
LastError (console safe) | This property returns the error code for the last operation. Zero means no error, another value means a file error. The code used by the File Manager, see Inside Macintosh at the Apple Website.
shared PluginVersion | Returns the version number of the plugin.
Read (console safe) | To read data from the stream.
Seek (console safe) | To move, relatively or absolutely, the cursor in the stream.
Write (console safe) | To write the data into the stream.

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit
- iOS