-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathGenerationContextDirect.h
43 lines (31 loc) · 1.15 KB
/
GenerationContextDirect.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
GPU plot generator for Burst coin.
Author: Cryo
Bitcoin: 138gMBhCrNkbaiTCmUhP9HLU9xwn5QKZgD
Burst: BURST-YA29-QCEW-QXC3-BKXDL
Based on the code of the official miner and dcct's plotgen.
*/
#ifndef CRYO_GPU_PLOT_GENERATOR_GENERATION_CONTEXT_DIRECT_H
#define CRYO_GPU_PLOT_GENERATOR_GENERATION_CONTEXT_DIRECT_H
#include <memory>
#include <exception>
#include "GenerationContext.h"
#include "GenerationConfig.h"
#include "PlotsFile.h"
#include "GenerationWork.h"
namespace cryo {
namespace gpuPlotGenerator {
class GenerationContextDirect : public GenerationContext {
private:
unsigned int m_staggerSize;
unsigned char* m_buffer;
public:
GenerationContextDirect(const std::shared_ptr<GenerationConfig>& p_config, const std::shared_ptr<PlotsFile>& p_plotsFile, unsigned int p_staggerSize);
GenerationContextDirect(const GenerationContextDirect& p_other) = delete;
virtual ~GenerationContextDirect() throw ();
GenerationContextDirect& operator=(const GenerationContextDirect& p_other) = delete;
virtual std::size_t getMemorySize() const;
virtual void writeNonces(std::shared_ptr<GenerationWork>& p_work) throw (std::exception);
};
}}
#endif