Class TBZDecompressionStream

Unit

Declaration

type TBZDecompressionStream = class(TCustomBZip2Stream)

Description

TDecompressionStream decompresses data on the fly as data is read from it.

Compressed data comes from a separate source stream. TDecompressionStream is read-only and unidirectional; you can seek forward in the stream, but not backwards. The special case of setting the stream position to zero is allowed. Seeking forward decompresses data until the requested position in the uncompressed data has been reached. Seeking backwards, seeking relative to the end of the stream, requesting the size of the stream, and writing to the stream will raise an exception.

The Position property returns the number of bytes of uncompressed data that have been read from the stream so far.

The OnProgress event is called each time the internal input buffer of compressed data is exhausted and the next block is read from the input stream. This is useful for updating a progress indicator when you are reading a large chunk of data from the decompression stream in a single call.

Hierarchy

Overview

Methods

Public constructor Create(Source: TStream);
Public destructor Destroy; override;
Public function Read(var Buffer; Count: Longint): Longint; override;
Public function Write(const Buffer; Count: Longint): Longint; override;
Public function Seek(Offset: Longint; Origin: Word): Longint; override;

Properties

Public property OnProgress;

Description

Methods

Public constructor Create(Source: TStream);
 
Public destructor Destroy; override;
 
Public function Read(var Buffer; Count: Longint): Longint; override;
 
Public function Write(const Buffer; Count: Longint): Longint; override;
 
Public function Seek(Offset: Longint; Origin: Word): Longint; override;
 

Properties

Public property OnProgress;
 

Generated by PasDoc 0.15.0.