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); }
public NativeArrayBurst(int length, Allocator allocator) { NativeArrayBurst <T> .Allocate(length, allocator, out this); }
public NativeArrayBurst(NativeArrayBurst <T> array, Allocator allocator) { NativeArrayBurst <T> .Allocate(array.Length, allocator, out this); NativeArrayUtils.Copy(array, ref this); }