Commit 75289746 authored by Dominik Charousset's avatar Dominik Charousset

Allow users to skip bytes while deserializing

parent d426dcdc
...@@ -72,6 +72,13 @@ public: ...@@ -72,6 +72,13 @@ public:
/// Returns how many bytes are still available to read. /// Returns how many bytes are still available to read.
size_t remaining() const; size_t remaining() const;
/// Jumps `num_bytes` forward.
/// @pre `num_bytes <= remaining()`
void skip(size_t num_bytes) {
current_ += num_bytes;
}
protected: protected:
error apply_impl(int8_t&) override; error apply_impl(int8_t&) override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment