示例#1
0
        public NativeArrayBurst(T[] array, Allocator allocator)
        {
            if (array == null)
            {
                throw new ArgumentNullException(nameof(array));
            }
            NativeArrayBurst <T> .Allocate(array.Length, allocator, out this);

            NativeArrayBurst <T> .Copy(array, this);
        }
示例#2
0
 public NativeArrayBurst(int length, Allocator allocator)
 {
     NativeArrayBurst <T> .Allocate(length, allocator, out this);
 }
示例#3
0
        public NativeArrayBurst(NativeArrayBurst <T> array, Allocator allocator)
        {
            NativeArrayBurst <T> .Allocate(array.Length, allocator, out this);

            NativeArrayUtils.Copy(array, ref this);
        }