resonance 1.0.1
Loading...
Searching...
No Matches
callbackxferbdtoiop.h
Go to the documentation of this file.
1#pragma once
2
3#include "os/asynccallback.h"
4
6constexpr int kBankChunkSize = 0x2000;
7
26public:
44 CallbackXferBdToIop(int nFile, char *pReadBuffer, int nDest, int nChunkLength, int nLength);
45
62 virtual void Done(int nHandle, int nFile, void *pBuffer, int nLength, int nStatus);
63
73 void Resume();
74
79
80private:
81 // The body Done() and Resume() share. The compiler emitted it into both rather than calling it,
82 // which is what an inline definition produces.
83 inline void XferChunk();
84
85 int mFile; // +0x08
86 char *mpReadBuffer; // +0x0c
87 int mChunkLength; // +0x10
88 int mDest; // +0x14
89
90public:
94
95private:
96 int mBusy; // +0x1c
97};
constexpr int kBankChunkSize
Largest read a single chunk of a BD bank transfer is asked for.
Definition callbackxferbdtoiop.h:6
Receiver notified once a queued asynchronous read has finished.
Definition asynccallback.h:18
void Resume()
Pick a deferred transfer back up.
virtual void Done(int nHandle, int nFile, void *pBuffer, int nLength, int nStatus)
Move the chunk that has just been read and queue the next one.
CallbackXferBdToIop(int nFile, char *pReadBuffer, int nDest, int nChunkLength, int nLength)
Prepare a transfer of a bank already measured.
int mRemaining
Definition callbackxferbdtoiop.h:93
int mRequestId
Definition callbackxferbdtoiop.h:78