decompressing.Close();
}
+ // https://bugzilla.xamarin.com/show_bug.cgi?id=22346
+ [Test]
+ public void CheckEmptyRead ()
+ {
+ byte [] dummy = new byte[1];
+ byte [] data = new byte[0];
+ MemoryStream backing = new MemoryStream (data);
+ DeflateStream compressing = new DeflateStream (backing, CompressionMode.Decompress);
+ compressing.Read (dummy, 0, 1);
+ }
+
[Test]
[ExpectedException (typeof (ArgumentNullException))]
public void CheckNullRead ()
zs->avail_in = n;
}
+ if (zs->avail_in == 0 && zs->total_in == 0)
+ return Z_STREAM_END;
+
status = inflate (stream->stream, Z_SYNC_FLUSH);
if (status == Z_STREAM_END) {
stream->eof = TRUE;