S# port of the open source C# DotNetZLib