Class SpanExtensions

Public

Public Static Methods

AsUnsafeReadOnlySpan<T> (arr)

Converts a NativeArray to a span, assuming it will only be read.

Public Static
AsUnsafeSpan<T> (buffer)

Converts an UnsafeAppendBuffer to a span.

Public Static
AsUnsafeSpan<T> (list)

Converts a NativeList to a span.

Public Static
AsUnsafeSpan<T> (arr)

Converts a NativeArray to a span.

Public Static
AsUnsafeSpan<T> (arr)

Converts an UnsafeList to a span.

Public Static
AsUnsafeSpan<T> (slice)

Converts a NativeSlice to a span.

Public Static
AsUnsafeSpanNoChecks<T> (arr)

Converts a NativeArray to a span without performing any checks.

Public Static
Contains<T> (span, value)

Returns true if the value exists in the span.

Public Static
CopyFrom<T> (span, array)

Copies the contents of a NativeArray to this span.

Public Static
CopyFrom<T> (span, other)

Copies the contents of another span to this span.

Public Static
CopyFrom<T> (span, array)

Copies the contents of an array to this span.

Public Static
Fill<T> (span, value)
Public Static
FillZeros<T> (span)
Public Static
IndexOf<T> (span, value)

Returns the index of the first occurrence of a value in the span.

Public Static
Sort<T> (span)

Sorts the span in ascending order.

Public Static
Sort<T,U> (span, comp)

Sorts the span in ascending order.

Public Static