コード例 #1
0
        internal static ZLibReturnCode InflateEnd(ref z_streamp strm)
        {
            if (Environment.Is64BitProcess)
            {
                return((ZLibReturnCode)inflateEnd_64(ref strm));
            }

            return((ZLibReturnCode)inflateEnd_32(ref strm));
        }
コード例 #2
0
        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))));
        }
コード例 #3
0
        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));
        }
コード例 #4
0
#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))));
        }
コード例 #5
0
 static extern int deflateEnd_64(ref z_streamp strm);
コード例 #6
0
 static extern int inflateEnd_32(ref z_streamp strm);
コード例 #7
0
 static extern int deflate_64(ref z_streamp strm, ZLibFlush flush);
コード例 #8
0
 static extern int inflate_32(ref z_streamp strm, ZLibFlush flush);
コード例 #9
0
 static extern int deflateInit2_64(ref z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, string version, int stream_size);
コード例 #10
0
 static extern int inflateInit2_64(ref z_streamp strm, int windowBits, string version, int stream_size);