Commit 211aea14 authored by Max Kellermann's avatar Max Kellermann

util/ConstBuffer: add method skip_front()

parent 74a46788
......@@ -237,6 +237,15 @@ struct ConstBuffer {
pop_front();
return result;
}
void skip_front(size_type n) {
#ifndef NDEBUG
assert(size >= n);
#endif
data += n;
size -= n;
}
};
#endif
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