mirror of
https://github.com/rrika/cdcEngineDXHR.git
synced 2024-11-23 21:49:54 +00:00
19 lines
531 B
C++
19 lines
531 B
C++
#pragma once
|
|
#include "FileReceiver.h"
|
|
|
|
namespace cdc {
|
|
|
|
class FileUserBufferReceiver : public FileReceiver {
|
|
void *buffer;
|
|
FileUserBufferReceiver(void *buffer) : buffer(buffer) {}
|
|
public:
|
|
static FileUserBufferReceiver *create(void *buffer) { return new FileUserBufferReceiver(buffer); }
|
|
void process(FileRequest*, void *input, uint32_t size, uint32_t offset) override;
|
|
void requestStarted(FileRequest*, uint32_t size) override;
|
|
void requestFailed(FileRequest*) override;
|
|
void requestComplete(FileRequest*) override;
|
|
};
|
|
|
|
|
|
}
|