After calling writableSliceGreedy, this function tracks how many bytes
were written to it.
This is not needed when using writableSlice or writableArray.
pub fn advance(w: *Writer, n: usize) void
pub fn advance(w: *Writer, n: usize) void {
const new_end = w.end + n;
assert(new_end <= w.buffer.len);
w.end = new_end;
}