diff --git a/src/streams.h b/src/streams.h index d58de5233b..ae1434cc1c 100644 --- a/src/streams.h +++ b/src/streams.h @@ -182,6 +182,11 @@ public: memcpy(dst.data(), m_data.data(), dst.size()); m_data = m_data.subspan(dst.size()); } + + void ignore(size_t n) + { + m_data = m_data.subspan(n); + } }; /** Double ended buffer combining vector and stream-like interfaces.