private static void CheckAllocateArguments(int length, Allocator allocator, long totalSize) { bool flag = allocator <= Allocator.None; if (flag) { throw new ArgumentException("Allocator must be Temp, TempJob or Persistent", "allocator"); } bool flag2 = length < 0; if (flag2) { throw new ArgumentOutOfRangeException("length", "Length must be >= 0"); } NativeArray <T> .IsUnmanagedAndThrow(); }