resonance 1.0.1
Loading...
Searching...
No Matches
writeop.h
Go to the documentation of this file.
1#pragma once
2
3#include "memcard/memcardop.h"
4
14class WriteOp : public MemcardOp {
15public:
29 int nPortSlot,
30 int nFile,
31 const void *pBuffer,
32 int nLength,
33 int nCookie);
34
39 virtual ~WriteOp();
40
45 virtual void Execute();
46
51 virtual void NotifyDone();
52
63 virtual void InterpretResult();
64
67
69 int mFile;
70
72 const void *mBuffer;
73
76};
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 Execute()
virtual void InterpretResult()
Record the transferred byte count, or map the failure through a jump table.
int mBytesTransferred
Bytes transferred, valid once mStatus is kMemcardStatusOk.
Definition writeop.h:66
int mFile
The descriptor to write to.
Definition writeop.h:69
const void * mBuffer
The source.
Definition writeop.h:72
virtual ~WriteOp()
virtual void NotifyDone()
int mLength
The number of bytes to write.
Definition writeop.h:75
WriteOp(MemcardCBHandler *pHandler, int nPortSlot, int nFile, const void *pBuffer, int nLength, int nCookie)
Construct a write against an open descriptor.