Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

writableSliceGreedy

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.

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

File

lib/std/Io/Writer.zig:397

Code

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