wavelength 1.0.0
Loading...
Searching...
No Matches
mcwritetask.h
Go to the documentation of this file.
1#pragma once
2
4
10class MCWriteTask : public MemcardTask {
11public:
18 ~MCWriteTask() override = default;
19
28 void Set(const void *pData, int nSize);
29
37 void OnWrite(int nResult) override;
38
39private:
40 const void *mData;
41 int mSize;
42
43protected:
50 void OnStart() override;
51};
Task that writes bytes to the file MemcardTask::sFd identifies.
Definition mcwritetask.h:10
~MCWriteTask() override=default
Destroy the object.
void Set(const void *pData, int nSize)
Prepare the task.
void OnWrite(int nResult) override
Record the outcome and finish.
void OnStart() override
Issue the command.
MemcardTask()
Construct an idle task for the first slot.
Definition memcardtask.h:41