This version of Unity is unsupported.

NativeArray<T0>.Equals

Declaration

public bool Equals(NativeArray<T> other);

Parameters

other NativeArray to compare against.

Returns

bool True in case the two NativeArray are the same, false otherwise.

Description

Compares to NativeArray.

Two NativeArray are considered the same if they point to the same underlying memory buffer, and have the same length.


Declaration

public bool Equals(object obj);

Parameters

obj Object to compare against.

Returns

bool True in case the two NativeArray are the same, false otherwise.

Description

Compares to NativeArray.

Two NativeArray are considered the same if they point to the same underlying memory buffer, and have the same length.