OnFileRead event/delegate/callback
Filter:
Pascal C++ (Lib) C++ (VCL) C++ (.NET) C# VB.NETOverview
This event is fired when CBDisk wants to read the data from the storage.
Declaration
[Pascal]
TCBDiskReadFileEvent = procedure(
Sender : TObject;
Buffer : Pointer;
BytesToRead : LongWord;
var BytesRead : LongWord) of object;
[C++ (Lib)]
typedef Error (*CBDiskReadFileEvent) {
CBDisk* Sender,
void* Buffer,
unsigned long BytesToRead,
unsigned long * BytesRead
);
[C++ (VCL)]
typedef void (__closure *TCBDiskReadFileEvent)(
System::TObject* Sender,
void* Buffer,
unsigned long BytesToRead,
unsigned long * BytesRead
);
[C++ (.NET)]
public __delegate void CBDiskReadFileEvent(
CBDisk^ Sender,
array<unsigned char>^% Buffer,
unsigned long BytesToRead,
unsigned long% BytesToRead
);
[C#]
public void CBDiskReadFileEvent(
CBDisk.CBDisk Sender,
uchar[] Buffer,
ulong BytesToRead,
ref ulong BytesRead);
[VB.NET]
Sub CBDiskReadFileEvent(
ByVal Sender As CBDisk.CBDisk,
ByVal Buffer As Byte(),
ByVal BytesToRead As UInt32,
ByRef BytesRead As UInt32)
Parameters
- Sender - reference to the class that called the delegate/event handler.
- Buffer - a reference to the buffer where application should store the data read from the storage.
- BytesToRead - the number of bytes to be read
- BytesRead - on return must contain the number of bytes actually read into the buffer
Description
This event is fired when CBDisk wants to read the data from the storage.
Read operation is successful only when BytesToRead bytes have been read.
Otherwise the application must throw an error.
See also
Got questions or comments about this topic? Tell us about them.

