Discuss this help topic in SecureBlackbox Forum

TElZipWriter.OnCompressionStreamNeeded

TElZipWriter     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


This event is fired when TElZipWriter needs a stream for compressed data.

Declaration

[C#/Java]
    event TSBZipCompressionStreamNeededEvent OnCompressionStreamNeeded;
    delegate void TSBZipCompressionStreamNeededEvent(Object Sender, TElZipArchiveDirectoryEntry Entry, ref System.IO.Stream Stream);

[VB.NET]
    Event OnCompressionStreamNeeded As TSBZipCompressionStreamNeededEvent
    Delegate Sub TSBZipCompressionStreamNeededEvent(ByVal Sender As Object, ByVal Entry As TElZipArchiveDirectoryEntry, ByRef Stream As System.IO.Stream)

[Pascal]
    property OnCompressionStreamNeeded : TSBZipCompressionStreamNeededEvent;
    TSBZipCompressionStreamNeededEvent = procedure(Sender: TObject; Entry : TElZipArchiveDirectoryEntry; var Stream : TStream) of object;

[C++]
    void get_OnCompressionStreamNeeded(TSBZipCompressionStreamNeededEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnCompressionStreamNeeded(TSBZipCompressionStreamNeededEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBZipCompressionStreamNeededEvent)(void * _ObjectData, TObjectHandle Sender, TElZipArchiveDirectoryEntryHandle Entry, TStreamHandle &Stream);

[PHP]
    TSBZipCompressionStreamNeededEvent|callable|NULL get_OnCompressionStreamNeeded()
    void set_OnCompressionStreamNeeded(TSBZipCompressionStreamNeededEvent|callable|NULL $Value)
    callable TSBZipCompressionStreamNeededEvent(TObject $Sender, TElZipArchiveDirectoryEntry $Entry, TStream &$Stream)

Parameters

  • Entry - archive entry to be compressed.
  • Stream - stream where the compressed data should be saved.

Description

    This event is fired by TElZipWriter when a stream is required to save the compressed data. Reference to the stream should be passed via the Stream parameter.

See also:     OnCompressionStart     OnCompressionFinished    

Discuss this help topic in SecureBlackbox Forum