Discuss this help topic in SecureBlackbox Forum

TElPGPStream.OnRead

TElPGPStream     See also     


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


This event is fired when TElPGPStream needs data.

Declaration

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

[VB.NET]
    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)

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

[C++]
    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);

[PHP]
    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)

[Java]
    TSBPGPReadEvent getOnRead();
    void setOnRead(TSBPGPReadEvent Value);
    TSBPGPReadEvent.Callback OnRead = new TSBPGPReadEvent.Callback() {
        public void TSBPGPReadEventCallback(TObject Sender, TObject UserData, byte[][] Buffer, int MaxSize, int[] Written, TSBBoolean Last) {
            //...
        }
    }

Parameters

  • 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.

Description

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

See also:     OnWrite     OnFinish    

Discuss this help topic in SecureBlackbox Forum