pub fn writableArray(w: *Writer, comptime len: usize) Error!*[len]u8
Asserts the provided buffer has total capacity enough for len.
len
Advances the buffer end position by len.
w: *Writer
len: usize
WriteFailed
See the Writer implementation for detailed diagnostics.
Writer
452 453 454 455 456
pub fn writableArray(w: *Writer, comptime len: usize) Error!*[len]u8 { const big_slice = try w.writableSliceGreedy(len); advance(w, len); return big_slice[0..len]; }
Asserts the provided buffer has total capacity enough for
len.Advances the buffer end position by
len.