Ejemplo n.º 1
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))));
     }
 }
Ejemplo n.º 2
0
 private static extern ZLibReturnCode    inflateInit2(ref z_stream strm, ZLibOpenType windowBits, string version, int stream_size);
Ejemplo n.º 3
0
 public ZLibStream(Stream stream, ZLibMode mode, ZLibCompLevel level, ZLibOpenType openType, bool leaveOpen = false) : this(stream, mode, level, leaveOpen)
 {
     _openType = openType;
 }
Ejemplo n.º 4
0
 internal static ZLibReturnCode InflateInit(ZStream stream, ZLibOpenType windowBits)
 {
     return(InflateInit2(stream, windowBits, ZLIB_VERSION, Marshal.SizeOf(typeof(ZStream))));
 }
Ejemplo n.º 5
0
 internal static extern ZLibReturnCode InflateInit2(ZStream strm, ZLibOpenType windowBits, [MarshalAs(UnmanagedType.LPStr)] string version, int stream_size);