Commit 2c1ad297 authored by Dominik Charousset's avatar Dominik Charousset

Add position getters to the binary deserializer

parent afb884bb
......@@ -57,6 +57,18 @@ public:
error apply_raw(size_t num_bytes, void* data) override;
// -- properties -------------------------------------------------------------
/// Returns the current read position.
const char* pos() const {
return pos_;
}
/// Returns the past-the-end iterator.
const char* end() const {
return end_;
}
protected:
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