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.

tossBitsShort

Decompress.tossBitsShort
fn tossBitsShort(d: *Decompress, n: u4) !void

File

lib/std/compress/flate/Decompress.zig:580

Code

fn tossBitsShort(d: *Decompress, n: u4) !void {
    if (d.input.bufferedLen() * 8 - d.consumed_bits < n) return error.EndOfStream;
    d.tossBits(n);
}