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



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

TGZFileStream.Read

Read data from the compressed file

Declaration

Source position: zstream.pp line 101

public function TGZFileStream.Read(

  var Buffer;

  Count: LongInt

):LongInt; override;

Arguments

Buffer

  

Memory buffer to store the data in

Count

  

Number of (uncompressed) bytes to read.

Function result

Number of bytes (uncompressed) actually read

Description

Read overrides the Read method of TStream to read the data from the compressed file. The Buffer parameter indicates where the read data should be stored. The Count parameter specifies the number of bytes (uncompressed) that should be read from the compressed file. Note that it is not possible to read from the stream if it was opened in write mode.

The function returns the number of uncompressed bytes actually read.

Errors

If Buffer points to an invalid location, or does not have enough room for Count bytes, an exception will be raised.

See also

Create

  

Create a new instance of TGZFileStream

Write

  

Write data to be compressed

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