Function advance [src]

After calling writableSliceGreedy, this function tracks how many bytes were written to it. This is not needed when using writableSlice or writableArray.

Prototype

pub fn advance(w: *Writer, n: usize) void

Parameters

w: *Writern: usize

Source

pub fn advance(w: *Writer, n: usize) void { const new_end = w.end + n; assert(new_end <= w.buffer.len); w.end = new_end; }