using System; namespace ScreenConnect; public class DeflateDecoder : DeflateCoder { public DeflateDecoder(DeflateWrapper wrapper) : base(wrapper) { Initialize(); } protected unsafe override int Initialize(IntPtr stream, byte* version, int streamSize, int windowBits) { return NativeLibrarySingleton.Instance.inflateInit2_(stream, windowBits, version, streamSize); } protected override int Process(IntPtr stream, CoderFlushType flushType) { return NativeLibrarySingleton.Instance.inflate(stream, flushType); } protected override int End(IntPtr stream) { return NativeLibrarySingleton.Instance.inflateEnd(stream); } }