Programming Search⌘K

std.Io.Writer

The entries of std.Io.Writer in the Zig reference. This page has 115 cards.

std.Io.Writer.consume

pub fn consume(w: *Writer, n: usize) usize

Removes the first `n` bytes from `buffer` by shifting buffer contents, returning how many bytes are left after consuming the entire buffer, or zero if the entire buffer was not consumed.

Kind
function
Module
std.Io.Writer

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.

std.Io.Writer.writeSplat

pub fn writeSplat(w: *Writer, data: []const []const u8, splat: usize) Error!usize

If the number of bytes to write based on `data` and `splat` fits inside `unusedCapacitySlice`, this function is guaranteed to not fail, not call into `VTable`, and return the full number of bytes.

Kind
function
Module
std.Io.Writer

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.

std.Io.Writer.writeSplatAll

pub fn writeSplatAll(w: *Writer, data: [][]const u8, splat: usize) Error!void

The `data` parameter is mutable because this function needs to mutate the fields in order to handle partial writes from `VTable.writeSplat`. `data` will be restored to its original state before returning.

Kind
function
Module
std.Io.Writer

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.

std.Io.Writer.writeVec

pub fn writeVec(w: *Writer, data: []const []const u8) Error!usize

If the total number of bytes of `data` fits inside `unusedCapacitySlice`, this function is guaranteed to not fail, not call into `VTable`, and return the total bytes inside `data`.

Kind
function
Module
std.Io.Writer

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.