示例#1
0
 internal static int inflateReset(ref z_stream strm)
 {
     if (ZLibDll.Is64)
     {
         return(inflateReset_64(ref strm));
     }
     else
     {
         return(inflateReset_32(ref strm));
     }
 }
示例#2
0
 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));
     }
 }
示例#3
0
 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))));
     }
 }
示例#4
0
 internal static int deflateEnd(ref z_stream strm)
 {
     if (ZLibDll.Is64)
     {
         return(deflateEnd_64(ref strm));
     }
     else
     {
         return(deflateEnd_32(ref strm));
     }
 }
示例#5
0
 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));
     }
 }
示例#6
0
 internal static int inflateEnd(ref z_stream strm)
 {
     if (Is64)
     {
         return(inflateEnd_64(ref strm));
     }
     else
     {
         return(inflateEnd_32(ref strm));
     }
 }
示例#7
0
 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))));
     }
 }
示例#8
0
 static extern int inflate_64(ref z_stream strm, ZLibFlush flush);
示例#9
0
 static extern int deflateInit2_64(ref z_stream 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_stream strm, int windowBits, string version, int stream_size);
示例#11
0
 static extern int deflateEnd_64(ref z_stream strm);
示例#12
0
 static extern int inflateEnd_32(ref z_stream strm);
示例#13
0
 static extern int deflate_32(ref z_stream strm, ZLibFlush flush);
示例#14
0
 static extern int inflateReset_64(ref z_stream strm);
示例#15
0
 static extern int deflateReset_32(ref z_stream strm);