diff options
Diffstat (limited to 'src/frame.h')
| -rw-r--r-- | src/frame.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h index d49be8f1..8a8a7814 100644 --- a/src/frame.h +++ b/src/frame.h @@ -65,6 +65,16 @@ public: Frame (Frame const&) = delete; Frame& operator= (Frame const&) = delete; + Frame(Frame&& other) + : _buffer(std::move(other._buffer)) + {} + + Frame& operator=(Frame&& other) + { + _buffer = std::move(other._buffer); + return *this; + } + uint8_t const * data () const { return _buffer.RoData(); |
