Discuss this help topic in SecureBlackbox Forum


TElPGPStream     See also     

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

This event is fired when TElPGPStream has some data to be written.


    event TSBPGPWriteEvent OnWrite;
    delegate void TSBPGPWriteEvent(Object Sender, Object UserData, byte[] Buffer, int Index, int Size);

    Event OnWrite As TSBPGPWriteEvent
    Delegate Sub TSBPGPWriteEvent(ByVal Sender As Object, ByVal UserData As Object, ByVal Buffer As Byte(), ByVal Index As Integer, ByVal Size As Integer)

    property OnWrite : TSBPGPWriteEvent;
    TSBPGPWriteEvent = procedure(Sender: TObject; UserData: pointer; Buffer: pointer; Size: integer) of object;

    void get_OnWrite(TSBPGPWriteEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnWrite(TSBPGPWriteEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBPGPWriteEvent)(void * _ObjectData, TObjectHandle Sender, void * UserData, void * Buffer, int32_t Size);

    TSBPGPWriteEvent|callable|NULL get_OnWrite()
    void set_OnWrite(TSBPGPWriteEvent|callable|NULL $Value)
    callable TSBPGPWriteEvent(TObject $Sender, TSBPointer|NULL $UserData, TSBPointer|NULL $Buffer, integer $Size)


  • UserData - data passed as AReadUserData to Process method.
  • Buffer - buffer with data to be saved to stream.
  • Index - Index of the first byte in the Buffer from which to start reading.
  • Size - Size of the Buffer (.NET: number of bytes to be read from the Buffer)


    This event is fired by TElPGPStream when it has some data to write.

See also:     OnRead     OnFinish    

Discuss this help topic in SecureBlackbox Forum