Function UnsafeSpan.Clone

Clone (Allocator allocator)

Creates a new copy of the span allocated using the given allocator.

Public
UnsafeSpan<T> Clone (

Allocator

allocator

)

Creates a new copy of the span allocated using the given allocator.

You are responsible for freeing this memory using the same allocator when you are done with it.