Esempio n. 1
0
 public static string zlibVersion()
 {
     if (Core.Unix)
     {
         return(ZLibUnix.zlibVersion());
     }
     else if (Core.Is64Bit)
     {
         return(ZLibWin64.zlibVersion());
     }
     else
     {
         return(ZLibWin32.zlibVersion());
     }
 }
Esempio n. 2
0
 public static string zlibVersion()
 {
     if (Environment.Unix)
     {
         return(ZLibUnix.zlibVersion());
     }
     else if (Environment.Is64Bit)
     {
         return(ZLibWin64.zlibVersion());
     }
     else
     {
         return(ZLibWin32.zlibVersion());
     }
 }
Esempio n. 3
0
 public static ZLibError compress(byte[] dest, ref int destLength, byte[] source, int sourceLength)
 {
     if (Core.Unix)
     {
         long      dl2 = destLength;
         ZLibError ret = ZLibUnix.compress(dest, ref dl2, source, sourceLength);
         destLength = (int)dl2;
         return(ret);
     }
     else if (Core.Is64Bit)
     {
         return(ZLibWin64.compress(dest, ref destLength, source, sourceLength));
     }
     else
     {
         return(ZLibWin32.compress(dest, ref destLength, source, sourceLength));
     }
 }
Esempio n. 4
0
 public static ZLibError uncompress(byte[] dest, ref int destLen, byte[] source, int sourceLen)
 {
     if (Environment.Unix)
     {
         long      dl2 = destLen;
         ZLibError ret = ZLibUnix.uncompress(dest, ref dl2, source, sourceLen);
         destLen = (int)dl2;
         return(ret);
     }
     else if (Environment.Is64Bit)
     {
         return(ZLibWin64.uncompress(dest, ref destLen, source, sourceLen));
     }
     else
     {
         return(ZLibWin32.uncompress(dest, ref destLen, source, sourceLen));
     }
 }
Esempio n. 5
0
 public static ZLibError compress2(byte[] dest, ref int destLength, byte[] source, int sourceLength, ZLibCompressionLevel level)
 {
     if (Environment.Unix)
     {
         long      dl2 = destLength;
         ZLibError ret = ZLibUnix.compress2(dest, ref dl2, source, sourceLength, level);
         destLength = (int)dl2;
         return(ret);
     }
     else if (Environment.Is64Bit)
     {
         return(ZLibWin64.compress2(dest, ref destLength, source, sourceLength, level));
     }
     else
     {
         return(ZLibWin32.compress2(dest, ref destLength, source, sourceLength, level));
     }
 }