/// <summary> /// Gets the max buffer size needed for oodle compression /// </summary> /// <param name="count"></param> /// <returns></returns> /// <exception cref="NotImplementedException"></exception> public static int GetCompressedBufferSizeNeeded(int count) { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { return((int)OodleNative.GetCompressedBufferSizeNeeded((long)count)); } else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { try { return(OozNative.GetCompressedBufferSizeNeeded(count)); } catch (Exception e) { Console.WriteLine(e); throw; } } else { throw new NotImplementedException(); } }
// gibbed public static int GetCompressedBufferSizeNeeded(int count) { return((int)OodleNative.GetCompressedBufferSizeNeeded(count)); }