internal static ZLibReturnCode InflateEnd(ref z_streamp strm) { if (Environment.Is64BitProcess) { return((ZLibReturnCode)inflateEnd_64(ref strm)); } return((ZLibReturnCode)inflateEnd_32(ref strm)); }
internal static ZLibReturnCode DeflateInit(ref z_streamp strm, CompressionLevel level, int windowBits) { if (Environment.Is64BitProcess) { return((ZLibReturnCode)deflateInit2_64(ref strm, (int)level, (int)ZLibCompressionMethod.Deflated, windowBits, (int)ZLibMemLevel.Default, (int)ZLibCompressionStrategy.Default, ZLibVersion, Marshal.SizeOf(typeof(z_streamp)))); } return((ZLibReturnCode)deflateInit2_32(ref strm, (int)level, (int)ZLibCompressionMethod.Deflated, windowBits, (int)ZLibMemLevel.Default, (int)ZLibCompressionStrategy.Default, ZLibVersion, Marshal.SizeOf(typeof(z_streamp)))); }
internal static ZLibReturnCode Deflate(ref z_streamp strm, ZLibFlush flush) { if (Environment.Is64BitProcess) { return((ZLibReturnCode)deflate_64(ref strm, flush)); } return((ZLibReturnCode)deflate_32(ref strm, flush)); }
#pragma warning restore IDE1006 // Naming Styles internal static ZLibReturnCode InflateInit(ref z_streamp strm, int windowBits) { if (Environment.Is64BitProcess) { return((ZLibReturnCode)inflateInit2_64(ref strm, windowBits, ZLibVersion, Marshal.SizeOf(typeof(z_streamp)))); } return((ZLibReturnCode)inflateInit2_32(ref strm, windowBits, ZLibVersion, Marshal.SizeOf(typeof(z_streamp)))); }
static extern int deflateEnd_64(ref z_streamp strm);
static extern int inflateEnd_32(ref z_streamp strm);
static extern int deflate_64(ref z_streamp strm, ZLibFlush flush);
static extern int inflate_32(ref z_streamp strm, ZLibFlush flush);
static extern int deflateInit2_64(ref z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, string version, int stream_size);
static extern int inflateInit2_64(ref z_streamp strm, int windowBits, string version, int stream_size);