pub fn init(output: *Writer, buffer: []u8, container: flate.Container) Writer.Error!Raw
While there is no minimum buffer size, it is recommended to be at least flate.max_window_len for optimal output.
flate.max_window_len
output: *Writer
buffer: []u8
container: flate.Container
1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629
pub fn init(output: *Writer, buffer: []u8, container: flate.Container) Writer.Error!Raw { try output.writeAll(container.header()); return .{ .writer = .{ .buffer = buffer, .vtable = &.{ .drain = Raw.drain, .flush = Raw.flush, .rebase = Raw.rebase, }, }, .output = output, .hasher = .init(container), }; }
While there is no minimum buffer size, it is recommended to be at least
flate.max_window_lenfor optimal output.