e-CryptIt Engine - Compression Xojo Plugin |

# ZStreamWriter Class (console safe)

To handle zip compression (.gz format) on files or streams then use the ZStreamWriter class.

Object
ZStreamWriter

class ZStreamWriter implements

IBinaryStreamWriter

IBlockWriter

#### Constructors

ZStreamWriter (console safe) | A constructor which will direct the output of the stream to a file. (FolderItem)
ZStreamWriter (console safe) | A constructor which will direct the output of the stream to any class that implements the IBinaryStreamWriter interface.
ZStreamWriter (console safe) | A constructor which will direct the output of the stream to a file (FolderItem) and take a buffer MemoryBlock object to do custom buffering.
ZStreamWriter (console safe) | A constructor which will direct the output of the stream to any class that implements the IBinaryStreamWriter interface and it also takes a buffer MemoryBlock object to do custom buffering.
ZStreamWriter (console safe) | A constructor which will direct the output of the stream to a BinaryStream object that is open in Write mode. This constructor also takes a boolean parameter to optionally skip gz headers in the output.

#### Properties

Buffer (console safe) | This property can be used to obtain or set the MemoryBlock that is used for a shared memory block based decompression.
CRC (console safe) | Returns the CRC of the uncompressed data in the stream.
CompressedSize (console safe) | Returns the size of the compressed data in the stream.
Position (console safe) | Returns the cursor position within the stream.
UncompressedSize (console safe) | Returns the size of the uncompressed data in the stream.

#### Methods

Close (console safe) | To close the stream. The stream is also closed when it is deconstructed.
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.
Seek (console safe) | To move, relatively or absolutely, the cursor in the stream.
Write (console safe) | To write the data into the stream.
WriteBlock (console safe) | Call the WriteBlock method in a loop to let the stream compress data from the shared memory block.

#### 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