Commit 87e0459f authored by Max Kellermann's avatar Max Kellermann

util/WritableBuffer: add method skip_front()

parent 07e58ae6
......@@ -217,6 +217,15 @@ struct WritableBuffer {
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