Function countingWriter [src]
Alias for std.io.counting_writer.countingWriter
Prototype
pub fn countingWriter(child_stream: anytype) CountingWriter(@TypeOf(child_stream))
Source
pub fn countingWriter(child_stream: anytype) CountingWriter(@TypeOf(child_stream)) {
return .{ .bytes_written = 0, .child_stream = child_stream };
}