Discuss this help topic in SecureBlackbox Forum

TElTarWriter.OnCompressionStreamNeeded

TElTarWriter     See also     


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


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

Declaration

[C#]
    event TSBTarCompressionStreamNeededEvent OnCompressionStreamNeeded;
    delegate void TSBTarCompressionStreamNeededEvent(Object Sender, TElTarArchiveDirectoryEntry Entry, ref System.IO.Stream Stream);

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

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

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

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

[Java]
    TSBTarCompressionStreamNeededEvent getOnCompressionStreamNeeded();
    void setOnCompressionStreamNeeded(TSBTarCompressionStreamNeededEvent Value);
    TSBTarCompressionStreamNeededEvent.Callback OnCompressionStreamNeeded = new TSBTarCompressionStreamNeededEvent.Callback() {
        public TElStream TSBTarCompressionStreamNeededEventCallback(TObject Sender, TElTarArchiveDirectoryEntry Entry) {
            //...
        }
    }

Parameters

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

Description

This event is fired by TElTarWriter 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