|
resonance 1.0.1
|
Receiver notified once a queued asynchronous read has finished. More...
#include <asynccallback.h>

Public Member Functions | |
| virtual | ~AsyncCallback () |
| Release the receiver. | |
| virtual void | Done (int nHandle, int nFile, void *pBuffer, int nLength, int nStatus)=0 |
| Report that a queued read has finished. | |
Receiver notified once a queued asynchronous read has finished.
Its RTTI type_info is at 0x0086f8a8. Both subclasses in the image, MovieAsyncCallback and MovieStreamingAsyncCallback, derive publicly at offset 0 and supply the one pure virtual. An instance is four bytes, the vptr alone. The interface therefore does not store data or need a constructor.
A request records its receiver, and the pump at 0x0045f8d8 invokes the receiver once off the completed list, immediately before the request's node is erased. The report arrives on whichever thread pumps the queue rather than on the drive callback thread.
Only the method name Done() is inferred. The image attests the class name, the argument list, and the vtable slot, and no string identifies the method itself.
|
virtual |
Release the receiver.
Occupies vtable slot 1. The body is empty, and neither subclass declares a destructor of its own.
|
pure virtual |
Report that a queued read has finished.
Occupies vtable slot 2. This class's slot addresses the pure-virtual reporter rather than a body, which is what makes the method pure here. Slot 0 is the compiler's type accessor.
| nHandle | The identifier AsyncSubmitRequest() reported, which both subclasses' messages title the async handle. |
| nFile | The file the read was issued against. |
| pBuffer | The destination the caller supplied. |
| nLength | The number of bytes the caller requested. |
| nStatus | Zero once the data is in place, or a positive failure code. |
Implemented in CallbackXferBdToIop, CallbackXferHdToIop, MetFreqLoader, MetRemixManager, MovieAsyncCallback, and MovieStreamingAsyncCallback.