resonance 1.0.1
Loading...
Searching...
No Matches
readop.h
Go to the documentation of this file.
1#pragma once
2
3#include "memcard/memcardop.h"
4
14class ReadOp : public MemcardOp {
15public:
29 int nPortSlot,
30 int nFile,
31 void *pBuffer,
32 int nLength,
33 int nCookie);
34
39 virtual ~ReadOp();
40
45 virtual void Execute();
46
51 virtual void NotifyDone();
52
62 virtual void InterpretResult();
63
66
68 int mFile;
69
71 void *mBuffer;
72
75};
Receiver notified once a queued memory-card operation has finished.
Definition memcardcbhandler.h:34
MemcardOp(MemcardCBHandler *pHandler, int nPortSlot, int nCookie)
Construct an operation against one card slot, with no libmc call issued yet.
virtual void InterpretResult()
Record the transferred byte count, or map the failure.
ReadOp(MemcardCBHandler *pHandler, int nPortSlot, int nFile, void *pBuffer, int nLength, int nCookie)
Construct a read against an open descriptor.
int mFile
The descriptor to read from.
Definition readop.h:68
void * mBuffer
The destination.
Definition readop.h:71
int mLength
The number of bytes to read.
Definition readop.h:74
virtual void Execute()
virtual ~ReadOp()
int mBytesTransferred
Bytes transferred, valid once mStatus is kMemcardStatusOk.
Definition readop.h:65
virtual void NotifyDone()