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