We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d010b46 + 42c4180 commit 2fb92d5Copy full SHA for 2fb92d5
src/framework/global/io/buffer.cpp
@@ -51,6 +51,12 @@ Buffer::Buffer(ByteArray* ba)
51
}
52
53
54
+Buffer::Buffer(ByteArray&& ba)
55
+{
56
+ m_ba = std::move(ba);
57
+ m_ref = &m_ba;
58
+}
59
+
60
const ByteArray& Buffer::data() const
61
{
62
return *m_ref;
src/framework/global/io/buffer.h
@@ -33,6 +33,7 @@ class Buffer : public IODevice
33
Buffer(size_t size);
34
Buffer(const uint8_t* data, size_t size);
35
Buffer(ByteArray* ba);
36
+ Buffer(ByteArray&& ba);
37
38
const ByteArray& data() const;
39
0 commit comments