Exemple #1
0
 public static unsafe void RequiresSameReference(void *ptr0, void *ptr1)
 {
     if (ptr0 != ptr1)
     {
         BufferPrimitivesThrowHelper.ThrowArgumentException(ExceptionArgument.pointer);
     }
 }
Exemple #2
0
 internal static unsafe void RequiresOneNotNull <T>(T[] array, void *pointer)
 {
     if (array == null && pointer == null)
     {
         BufferPrimitivesThrowHelper.ThrowArgumentException();
     }
 }
Exemple #3
0
 public static void Requires(bool condition)
 {
     if (!condition)
     {
         BufferPrimitivesThrowHelper.ThrowArgumentException();
     }
 }