public static int IndexOf <T, U>(this NativeBufferArray <T> array, U value) where T : struct, System.IEquatable <U> { if (array.isCreated == false) { return(-1); } return(array.arr.IndexOf(value)); }
public Enumerator(NativeBufferArray <T> bufferArray) { this.bufferArray = bufferArray; this.index = -1; }
public bool Equals(NativeBufferArray <T> other) { return(this == other); }
public static NativeBufferArray <T> From(NativeBufferArray <T> arr) { return(new NativeBufferArray <T>(arr)); }
internal NativeBufferArray(NativeBufferArray <T> arr) { this.Length = arr.Length; this.arr = new NativeArray <T>(arr.arr, Allocator.Persistent); }
public static int IndexOf <T, U>(this NativeBufferArray <T> array, U value) where T : struct, System.IEquatable <U> { return(array.arr.IndexOf(value)); }