Class SpanExtensions

Public

Public Static Methods

AddReplicate<T> (list, value, count)

Appends value count times to the end of this list.

Public Static
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
InsertRange<T> (list, index, count)

Shifts elements toward the end of this list, increasing its length.

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