internal BufferArray(T[] arr, int length) { this.Length = length; this.isNotEmpty = (length > 0 && arr != null); #if UNITY_EDITOR && EDITOR_ARRAY this.arr.data = arr; this.arr.length = length; this.arr.isNotEmpty = this.isNotEmpty; #else this.arr = arr; #endif }
public BufferArray(T[] arr, int length, int realLength) { this.Length = length; this.isCreated = (length > 0 && arr != null); #if UNITY_EDITOR && EDITOR_ARRAY this.arr.data = arr; this.arr.Length = (arr != null ? arr.Length : 0); this.arr.usedLength = (realLength >= 0 ? realLength : length); this.arr.isCreated = this.isCreated; #else this.arr = arr; #endif }
public readonly bool Equals(EditorArr obj) { return(this.data == obj.data); }