|
resonance 1.0.1
|
Read from an open memory-card file. More...
#include <readop.h>


Public Member Functions | |
| ReadOp (MemcardCBHandler *pHandler, int nPortSlot, int nFile, void *pBuffer, int nLength, int nCookie) | |
| Construct a read against an open descriptor. | |
| virtual | ~ReadOp () |
| virtual void | Execute () |
| virtual void | NotifyDone () |
| virtual void | InterpretResult () |
| Record the transferred byte count, or map the failure. | |
| Public Member Functions inherited from MemcardOp | |
| MemcardOp (MemcardCBHandler *pHandler, int nPortSlot, int nCookie) | |
| Construct an operation against one card slot, with no libmc call issued yet. | |
| MemcardOp (MemcardCBHandler *pHandler, int nCookie) | |
| Construct an operation against an open descriptor alone. | |
| virtual | ~MemcardOp () |
| Release the operation. | |
Public Attributes | |
| int | mBytesTransferred |
| Bytes transferred, valid once mStatus is kMemcardStatusOk. | |
| int | mFile |
| The descriptor to read from. | |
| void * | mBuffer |
| The destination. | |
| int | mLength |
| The number of bytes to read. | |
| Public Attributes inherited from MemcardOp | |
| int | mCookie |
| Ticket number Memcard::Cancel() matches on. | |
| int | mIssued |
| Zero until Execute() has run, then 1 while libmc is servicing the call. | |
| int | mResult |
| The libmc result, as sceMcSync() delivered it. | |
| int | mStatus |
| One of MemcardStatus, written by InterpretResult(). | |
Additional Inherited Members | |
| Protected Attributes inherited from MemcardOp | |
| int | mPortSlot |
| MemcardCBHandler * | mHandler |
Read from an open memory-card file.
Its RTTI descriptor is at 0x008ee7c8. It has single inheritance from MemcardOp at offset 0. An instance is 0x2c bytes and the vtable is at 0x0082bd60.
Execute() addresses the descriptor rather than the card. MemcardOp::mPortSlot is therefore recorded and never read.
| ReadOp::ReadOp | ( | MemcardCBHandler * | pHandler, |
| int | nPortSlot, | ||
| int | nFile, | ||
| void * | pBuffer, | ||
| int | nLength, | ||
| int | nCookie ) |
Construct a read against an open descriptor.
| pHandler | The receiver NotifyDone() reports to. |
| nPortSlot | The packed port and slot, which Execute() does not use. |
| nFile | The descriptor OpenReadOp delivered. |
| pBuffer | The destination. |
| nLength | The number of bytes to read. |
| nCookie | The tag Memcard::Cancel() matches on. |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Record the transferred byte count, or map the failure.
sceMcResNoEntry becomes kMemcardStatusBadFile and sceMcResDeniedPermit becomes kMemcardStatusNoEntry, which is the reverse of the pairing the open operations use.
Reimplemented from MemcardOp.
| int ReadOp::mBytesTransferred |
Bytes transferred, valid once mStatus is kMemcardStatusOk.
+0x1c
| int ReadOp::mFile |
The descriptor to read from.
+0x20
| void* ReadOp::mBuffer |
The destination.
+0x24
| int ReadOp::mLength |
The number of bytes to read.
+0x28