Discuss this help topic in SecureBlackbox Forum

TElPGPStream.OnRead

TElPGPStream     See also     


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


This event is fired when TElPGPStream needs data.

Declaration

[C#/Java]
    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)

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