public static string zlibVersion() { if (unix) { return(ZLibUnix.zlibVersion()); } else { return(ZLibWin32.zlibVersion()); } }
public static string zlibVersion() { if (Core.Unix) { return(ZLibUnix.zlibVersion()); } else if (Core.Is64Bit) { return(ZLibWin64.zlibVersion()); } else { return(ZLibWin32.zlibVersion()); } }
public static string zlibVersion() { if (Environment.Unix) { return(ZLibUnix.zlibVersion()); } else if (Environment.Is64Bit) { return(ZLibWin64.zlibVersion()); } else { return(ZLibWin32.zlibVersion()); } }
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)); } }
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)); } }
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)); } }