We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0cd412 commit 9d544cbCopy full SHA for 9d544cb
1 file changed
src/DSUtil/SimpleBuffer.h
@@ -37,6 +37,13 @@ class CSimpleBlock
37
size_t m_size = 0;
38
39
public:
40
+ CSimpleBlock() = default;
41
+ CSimpleBlock(const CSimpleBlock& simpleBlock)
42
+ {
43
+ SetSize(simpleBlock.m_size);
44
+ memcpy(this->m_data.get(), simpleBlock.m_data.get(), simpleBlock.m_size);
45
+ }
46
+
47
// Returns pointer to the data.
48
auto* Data() { return m_data.get(); }
49
const auto* Data() const { return m_data.get(); }
0 commit comments