Skip to content

Commit 82a379e

Browse files
committed
streams: Add SpanReader ignore method
Needed to deserialize some types from spans like CScripts
1 parent abfc8c9 commit 82a379e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/streams.h

+5
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ class SpanReader
182182
memcpy(dst.data(), m_data.data(), dst.size());
183183
m_data = m_data.subspan(dst.size());
184184
}
185+
186+
void ignore(size_t n)
187+
{
188+
m_data = m_data.subspan(n);
189+
}
185190
};
186191

187192
/** Double ended buffer combining vector and stream-like interfaces.

0 commit comments

Comments
 (0)