internal static int inflateReset(ref z_stream strm) { if (ZLibDll.Is64) { return(inflateReset_64(ref strm)); } else { return(inflateReset_32(ref strm)); } }
internal static int inflate(ref z_stream strm, ZLibFlush flush) { if (ZLibDll.Is64) { return(inflate_64(ref strm, flush)); } else { return(inflate_32(ref strm, flush)); } }
internal static int inflateInit(ref z_stream strm, ZLibOpenType windowBits) { if (ZLibDll.Is64) { return(inflateInit2_64(ref strm, (int)windowBits, ZLib.ZLibVersion, Marshal.SizeOf(typeof(z_stream)))); } else { return(inflateInit2_32(ref strm, (int)windowBits, ZLib.ZLibVersion, Marshal.SizeOf(typeof(z_stream)))); } }
internal static int deflateEnd(ref z_stream strm) { if (ZLibDll.Is64) { return(deflateEnd_64(ref strm)); } else { return(deflateEnd_32(ref strm)); } }
internal static int deflate(ref z_stream strm, ZLibFlush flush) { if (Is64) { return(deflate_64(ref strm, flush)); } else { return(deflate_32(ref strm, flush)); } }
internal static int inflateEnd(ref z_stream strm) { if (Is64) { return(inflateEnd_64(ref strm)); } else { return(inflateEnd_32(ref strm)); } }
internal static int deflateInit(ref z_stream strm, CompressionLevel level, ZLibWriteType windowBits) { if (ZLibDll.Is64) { return(deflateInit2_64(ref strm, (int)level, Z_DEFLATED, (int)windowBits, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY, ZLibVersion, Marshal.SizeOf(typeof(z_stream)))); } else { return(deflateInit2_32(ref strm, (int)level, Z_DEFLATED, (int)windowBits, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY, ZLibVersion, Marshal.SizeOf(typeof(z_stream)))); } }
static extern int inflate_64(ref z_stream strm, ZLibFlush flush);
static extern int deflateInit2_64(ref z_stream strm, int level, int method, int windowBits, int memLevel, int strategy, string version, int stream_size);
static extern int inflateInit2_64(ref z_stream strm, int windowBits, string version, int stream_size);
static extern int deflateEnd_64(ref z_stream strm);
static extern int inflateEnd_32(ref z_stream strm);
static extern int deflate_32(ref z_stream strm, ZLibFlush flush);
static extern int inflateReset_64(ref z_stream strm);
static extern int deflateReset_32(ref z_stream strm);