Discuss this help topic in SecureBlackbox Forum


TElPGPStream     See also     

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

This event is fired when TElPGPStream needs data.


    TSBPGPReadEvent OnRead;
    delegate void TSBPGPReadEvent(Object Sender, Object UserData, ref byte[] Buffer, int MaxSize, ref int Written, ref bool Last);

    Event OnRead As TSBPGPReadEvent
    Delegate Sub TSBPGPReadEvent(ByVal Sender as Object, ByVal UserData as Object, ByRef Buffer as byte(), ByVal MaxSize as integer, ByRef Written as integer, ByRef Last as boolean)

    property OnRead : TSBPGPReadEvent;
    TSBPGPReadEvent = procedure(Sender: TObject; UserData : pointer; Buffer: pointer; MaxSize: integer; var Written: integer; var Last: boolean) of object;

    void get_OnRead(TSBPGPReadEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnRead(TSBPGPReadEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBPGPReadEvent)(void * _ObjectData, TObjectHandle Sender, void * UserData, void * Buffer, int32_t MaxSize, int32_t &Written, int8_t &Last);

    TSBPGPReadEvent|callable|NULL get_OnRead()
    void set_OnRead(TSBPGPReadEvent|callable|NULL $Value)
    callable TSBPGPReadEvent(TObject $Sender, TSBPointer|NULL $UserData, TSBPointer|NULL $Buffer, integer $MaxSize, integer &$Written, bool &$Last)


  • UserData - data passed as AReadUserData to Process method.
  • Buffer - buffer where the data should be written to.
  • MaxSize - maximal amount of data that should be written.
  • Written - this parameter should be set to match the length of data actually written to the buffer.
  • Last - should be set to True if there is no more data in incoming stream.


    This event is fired by TElPGPStream when it needs data for processing.

See also:     OnWrite     OnFinish    

Discuss this help topic in SecureBlackbox Forum