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

Tcompressionstream.write

Write data to the stream

Declaration

Source position: zstream.pp line 67

public function Tcompressionstream.write(

  const buffer;

  count: LongInt

):LongInt; override;

Arguments

buffer

  

Buffer to take data from.

count

  

Number of bytes to take from the buffer.

Function result

Number of (uncompressed) bytes actually written

Description

Write takes Count bytes from Buffer and compresses (deflates) them. The compressed result is written to the output stream.

Errors

If an error occurs, an ECompressionError exception is raised.

See also

Write

  

Write data to the stream

ECompressionError

  

Errors in the TCompressionStream class are signaled with this exception


Documentation generated on: Jun 23 2021