Create a Decompress from compressed and immediately discard all output. Returns the number
of discarded bytes.
fn testDiscard(gpa: std.mem.Allocator, compressed: []const u8) !usize
fn testDiscard(gpa: std.mem.Allocator, compressed: []const u8) !usize {
const buf: []u8 = try gpa.alloc(u8, default_window_len + block_size_max);
defer gpa.free(buf);
var in: std.Io.Reader = .fixed(compressed);
var zstd_stream: Decompress = .init(&in, buf, .{});
return try zstd_stream.reader.discardRemaining();
}