Sign in Join
FPDoc Onlineexperiment

TCompressor class

In unit Zipper

Compressor object.

Declaration

pascal
TCompressor = class(TObject)

Inheritance

  1. TCompressor
  2. TObject

Descends from it: TDeflater TShrinker

Description

This object compresses a stream into a compressed zip stream.

Properties

BufferSizepublicSize of the buffer used for compression.
Crc32ValpublicRunning CRC32 value.
TerminatedpublicSet to True when the Terminate method is called.

Methods

UpdC32protectedUpdates running CRC32 value.
CreatepublicCreates a object.
CompresspublicCompresses input stream to output stream.
ZipIDpublicIdentifier for type of compression.
ZipVersionReqdpublicZIP version required in the method.
ZipBitFlagpublicCurrent bit.
TerminatepublicHalts the compressor by setting the Terminated property to True.

Events

OnPercentpublicThreshold percentage which triggers an OnProgress update.
OnProgresspublicEvent handler signalled to indicate the completion percentage for the compressor.

Fields

FInFileprotectedInput/source stream for compression.
FOutFileprotectedOutput stream with compressed data.
FCrc32ValprotectedCRC calculation variable.
FBufferSizeprotectedSize of buffer used for compression.
FOnPercentprotectedPercentage of operation completed.
FOnProgressprotectedProgress event procedure.

Inherited

From TObject (41)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Destroy Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.