[Overview][Types][Classes] |
Write data to be compressed
Source position: zstream.pp line 102
public function TGZFileStream.Write( |
const Buffer; |
Count: LongInt |
):LongInt; override; |
Buffer |
|
Memory location containing the data to be written. |
Count |
|
Number of bytes to write. |
Number of uncompressed bytes written
Writewrites Countbytes from Bufferto the compressed file. The data is compressed as it is written, so ideally, less than Countbytes end up in the compressed file. Note that it is not possible to write to the stream if it was opened in read mode.
The function returns the number of (uncompressed) bytes that were actually written.
In case of an error, an EZlibErrorexception is raised.
|
Create a new instance of TGZFileStream |
|
|
Read data from the compressed file |
|
|
Set the position in the compressed stream. |