Discuss this help topic in SecureBlackbox Forum


TElPGPReader     See also     

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

This event is fired periodically and shows amount of processed data.


    event TSBPGPProgressEvent OnProgress;
    delegate void TSBPGPProgressEvent(Object Sender, long Processed, long Total, ref bool Cancel);

    Event OnProgress As TSBPGPProgressEvent
    Delegate Sub TSBPGPProgressEvent(ByVal Sender As Object, ByVal Processed As Long, ByVal Total As Long, ByRef Cancel As Boolean)

    property OnProgress : TSBPGPProgressEvent;
    TSBPGPProgressEvent = procedure(Sender: TObject; Processed: Int64; Total: Int64; var Cancel: boolean) of object;

    void get_OnProgress(TSBPGPProgressEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnProgress(TSBPGPProgressEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBPGPProgressEvent)(void * _ObjectData, TObjectHandle Sender, int64_t Processed, int64_t Total, int8_t &Cancel);

    TSBPGPProgressEvent|callable|NULL get_OnProgress()
    void set_OnProgress(TSBPGPProgressEvent|callable|NULL $Value)
    callable TSBPGPProgressEvent(TObject $Sender, integer $Processed, integer $Total, bool &$Cancel)


  • Processed - amount of processed data in bytes.
  • Total - total length of incoming data in bytes.
  • Cancel - if this parameter is set to True, further processing will be canceled.


    This event shows amount of processed data in bytes. To get the amount of processed data in percent just count ((Processed * 100) / Total).

See also:     OnArmored     OnCompressed     OnCreateOutputStream     OnEncrypted     OnKeyPassphrase     OnPassphrase     OnSigned    

Discuss this help topic in SecureBlackbox Forum