help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Types][Classes] Reference for unit 'zstream' (#fcl)

TGZFileStream.Write

Write data to be compressed

Declaration

Source position: zstream.pp line 102

public function TGZFileStream.Write(

  const Buffer;

  Count: LongInt

):LongInt; override;

Arguments

Buffer

  

Memory location containing the data to be written.

Count

  

Number of bytes to write.

Function result

Number of uncompressed bytes written

Description

Write writes Count bytes from Buffer to the compressed file. The data is compressed as it is written, so ideally, less than Count bytes 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.

Errors

In case of an error, an EZlibError exception is raised.

See also

Create

  

Create a new instance of TGZFileStream

Read

  

Read data from the compressed file

Seek

  

Set the position in the compressed stream.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505