コード例 #1
0
 /// <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();
     }
 }
コード例 #2
0
ファイル: OodleHelper.cs プロジェクト: waitxd/Wolven-kit
 // gibbed
 public static int GetCompressedBufferSizeNeeded(int count)
 {
     return((int)OodleNative.GetCompressedBufferSizeNeeded(count));
 }