resonance 1.0.1
Loading...
Searching...
No Matches
AsyncCallback Class Referenceabstract

Receiver notified once a queued asynchronous read has finished. More...

#include <asynccallback.h>

Inheritance diagram for AsyncCallback:

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~AsyncCallback()

virtual AsyncCallback::~AsyncCallback ( )
virtual

Release the receiver.

Occupies vtable slot 1. The body is empty, and neither subclass declares a destructor of its own.

Ghidra address:
NTSC-U/C: 0x002a3860
Ghidra address:
PAL: 0x002c1668

Member Function Documentation

◆ Done()

virtual void AsyncCallback::Done ( int nHandle,
int nFile,
void * pBuffer,
int nLength,
int nStatus )
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.

Parameters
nHandleThe identifier AsyncSubmitRequest() reported, which both subclasses' messages title the async handle.
nFileThe file the read was issued against.
pBufferThe destination the caller supplied.
nLengthThe number of bytes the caller requested.
nStatusZero once the data is in place, or a positive failure code.

Implemented in CallbackXferBdToIop, CallbackXferHdToIop, MetFreqLoader, MetRemixManager, MovieAsyncCallback, and MovieStreamingAsyncCallback.


The documentation for this class was generated from the following file: