public static ZipHandle OpenArchive (ZlibFileFuncDef funcDef, Append append) { ZipHandle h = zipOpen2 ("", (int) append, IntPtr.Zero, ref funcDef); if (h.IsInvalid) throw new Exception ("Could not open the zip archive"); return h; }
public static UnzipHandle OpenArchive(ZlibFileFuncDef fileFuncs) { UnzipHandle handle = unzOpen2("", ref fileFuncs); if (handle.IsInvalid) { throw new Exception("Could not open unzip archive"); } return(handle); }
public static ZipHandle OpenArchive(ZlibFileFuncDef funcDef, Append append) { ZipHandle h = zipOpen2("", (int)append, IntPtr.Zero, ref funcDef); if (h.IsInvalid) { throw new Exception("Could not open the zip archive"); } return(h); }
public ZipStream(Stream dataStream, bool ownsStream) { // FIXME: Not necessarily true canRead = true; canSeek = true; canWrite = true; DataStream = dataStream; OwnsStream = ownsStream; ZlibFileFuncDef f = new ZlibFileFuncDef(); f.opaque = IntPtr.Zero; f.zclose_file = CloseFile_Native; f.zerror_file = TestError_Native; f.zopen_file = OpenFile_Native; f.zread_file = ReadFile_Native; f.zseek_file = SeekFile_Native; f.ztell_file = TellFile_Native; f.zwrite_file = WriteFile_Native; IOFunctions = f; }
public ZipStream (Stream dataStream, bool ownsStream) { // FIXME: Not necessarily true canRead = true; canSeek = true; canWrite = true; DataStream = dataStream; OwnsStream = ownsStream; ZlibFileFuncDef f = new ZlibFileFuncDef(); f.opaque = IntPtr.Zero; f.zclose_file = CloseFile_Native; f.zerror_file = TestError_Native; f.zopen_file = OpenFile_Native; f.zread_file = ReadFile_Native; f.zseek_file = SeekFile_Native; f.ztell_file = TellFile_Native; f.zwrite_file = WriteFile_Native; IOFunctions = f; }
static extern UnzipHandle unzOpen2 (string path, ref ZlibFileFuncDef pzlib_filefunc_def);
public static UnzipHandle OpenArchive (ZlibFileFuncDef fileFuncs) { UnzipHandle handle = unzOpen2 ("", ref fileFuncs); if (handle.IsInvalid) throw new Exception ("Could not open unzip archive"); return handle; }
static extern UnzipHandle unzOpen2(string path, ref ZlibFileFuncDef pzlib_filefunc_def);
static extern ZipHandle zipOpen2(string pathname, int append, IntPtr globalcomment, // zipcharpc* ref ZlibFileFuncDef pzlib_filefunc_def); // zlib_filefunc_def*
static extern ZipHandle zipOpen2 (string pathname, int append, IntPtr globalcomment, // zipcharpc* ref ZlibFileFuncDef pzlib_filefunc_def); // zlib_filefunc_def*