Function writableSliceGreedy [src]

Asserts the provided buffer has total capacity enough for minimum_len. Does not advance the buffer end position. If minimum_len is zero, this is equivalent to unusedCapacitySlice.

Prototype

pub fn writableSliceGreedy(w: *Writer, minimum_len: usize) Error![]u8

Parameters

w: *Writerminimum_len: usize

Possible Errors

WriteFailed

See the Writer implementation for detailed diagnostics.

Source

pub fn writableSliceGreedy(w: *Writer, minimum_len: usize) Error![]u8 { return writableSliceGreedyPreserve(w, 0, minimum_len); }