mirror of
https://github.com/rrika/cdcEngineDXHR.git
synced 2024-11-23 05:29:57 +00:00
23 lines
464 B
C++
23 lines
464 B
C++
#include <cstring>
|
|
#include "FileUserBufferReceiver.h"
|
|
|
|
namespace cdc {
|
|
|
|
void FileUserBufferReceiver::process(FileRequest*, void *input, uint32_t size, uint32_t offset) {
|
|
memcpy((char*)buffer + offset, input, size);
|
|
}
|
|
|
|
void FileUserBufferReceiver::requestStarted(FileRequest*, uint32_t size) {
|
|
// empty
|
|
}
|
|
|
|
void FileUserBufferReceiver::requestFailed(FileRequest*) {
|
|
delete this;
|
|
}
|
|
|
|
void FileUserBufferReceiver::requestComplete(FileRequest*) {
|
|
delete this;
|
|
}
|
|
|
|
}
|