Пример #1
0
 public static size_t EnsureZstdSuccess(this size_t returnValue)
 {
     if (ExternMethods.ZSTD_isError(returnValue) != 0)
     {
         ThrowException(returnValue, Marshal.PtrToStringAnsi(ExternMethods.ZSTD_getErrorName(returnValue)));
     }
     return(returnValue);
 }
Пример #2
0
 // Token: 0x0600003C RID: 60 RVA: 0x0000285A File Offset: 0x00000A5A
 public static UIntPtr EnsureZstdSuccess(this UIntPtr returnValue)
 {
     if (ExternMethods.ZSTD_isError(returnValue) != 0u)
     {
         ReturnValueExtensions.ThrowException(returnValue, Marshal.PtrToStringAnsi(ExternMethods.ZSTD_getErrorName(returnValue)));
     }
     return(returnValue);
 }