|
|
|
|
|
|
{ |
|
|
|
m_Length = 1; |
|
|
|
m_Elem0 = elem0; |
|
|
|
m_Elem1 = new T {}; |
|
|
|
m_Elem2 = new T {}; |
|
|
|
m_Elem3 = new T {}; |
|
|
|
m_Elem1 = new T { }; |
|
|
|
m_Elem2 = new T { }; |
|
|
|
m_Elem3 = new T { }; |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
m_Length = 2; |
|
|
|
m_Elem0 = elem0; |
|
|
|
m_Elem1 = elem1; |
|
|
|
m_Elem2 = new T {}; |
|
|
|
m_Elem3 = new T {}; |
|
|
|
m_Elem2 = new T { }; |
|
|
|
m_Elem3 = new T { }; |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
m_Elem0 = elem0; |
|
|
|
m_Elem1 = elem1; |
|
|
|
m_Elem2 = elem2; |
|
|
|
m_Elem3 = new T {}; |
|
|
|
m_Elem3 = new T { }; |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
/// <param name="lhs"></param>
|
|
|
|
/// <param name="rhs"></param>
|
|
|
|
/// <returns>Whether the arrays are equivalent.</returns>
|
|
|
|
public static bool operator==(InplaceArray<T> lhs, InplaceArray<T> rhs) |
|
|
|
public static bool operator ==(InplaceArray<T> lhs, InplaceArray<T> rhs) |
|
|
|
{ |
|
|
|
if (lhs.Length != rhs.Length) |
|
|
|
{ |
|
|
|
|
|
|
/// <param name="lhs"></param>
|
|
|
|
/// <param name="rhs"></param>
|
|
|
|
/// <returns>Whether the arrays are not equivalent</returns>
|
|
|
|
public static bool operator!=(InplaceArray<T> lhs, InplaceArray<T> rhs) => !(lhs == rhs); |
|
|
|
public static bool operator !=(InplaceArray<T> lhs, InplaceArray<T> rhs) => !(lhs == rhs); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Check that the arrays are equivalent.
|
|
|
|