cdcEngineDXHR/cdcFile/FileUserBufferReceiver.h
2023-01-31 22:15:57 +00:00

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;
};
}