예제 #1
0
 public static string zlibVersion()
 {
     if (unix)
     {
         return(ZLibUnix.zlibVersion());
     }
     else
     {
         return(ZLibWin32.zlibVersion());
     }
 }
예제 #2
0
파일: ZLib.cs 프로젝트: dpisanu/xrunuo
 public static string zlibVersion()
 {
     if (Core.Unix)
     {
         return(ZLibUnix.zlibVersion());
     }
     else if (Core.Is64Bit)
     {
         return(ZLibWin64.zlibVersion());
     }
     else
     {
         return(ZLibWin32.zlibVersion());
     }
 }
예제 #3
0
 public static string zlibVersion()
 {
     if (Environment.Unix)
     {
         return(ZLibUnix.zlibVersion());
     }
     else if (Environment.Is64Bit)
     {
         return(ZLibWin64.zlibVersion());
     }
     else
     {
         return(ZLibWin32.zlibVersion());
     }
 }
예제 #4
0
 public static ZLibError uncompress(byte[] dest, ref int destLen,
                                    byte[] source, int sourceLen)
 {
     if (unix)
     {
         long      dl2 = destLen;
         ZLibError ret = ZLibUnix.uncompress(dest, ref dl2,
                                             source, sourceLen);
         destLen = (int)dl2;
         return(ret);
     }
     else
     {
         return(ZLibWin32.uncompress(dest, ref destLen,
                                     source, sourceLen));
     }
 }
예제 #5
0
 public static ZLibError compress(byte[] dest, ref int destLength,
                                  byte[] source, int sourceLength)
 {
     if (unix)
     {
         long      dl2 = destLength;
         ZLibError ret = ZLibUnix.compress(dest, ref dl2,
                                           source, sourceLength);
         destLength = (int)dl2;
         return(ret);
     }
     else
     {
         return(ZLibWin32.compress(dest, ref destLength,
                                   source, sourceLength));
     }
 }
예제 #6
0
파일: ZLib.cs 프로젝트: dpisanu/xrunuo
 public static ZLibError compress2(byte[] dest, ref int destLength, byte[] source, int sourceLength, ZLibCompressionLevel level)
 {
     if (Core.Unix)
     {
         long      dl2 = destLength;
         ZLibError ret = ZLibUnix.compress2(dest, ref dl2, source, sourceLength, level);
         destLength = (int)dl2;
         return(ret);
     }
     else if (Core.Is64Bit)
     {
         return(ZLibWin64.compress2(dest, ref destLength, source, sourceLength, level));
     }
     else
     {
         return(ZLibWin32.compress2(dest, ref destLength, source, sourceLength, level));
     }
 }