Forms a slice out of the current memory that begins at a specified index.
Slice(Int32, Int32)Forms a slice out of the current memory starting at a specified index for a specified length.
Slice(Int32)Forms a slice out of the current memory that begins at a specified index.
public:
Memory<T> Slice(int start);
public Memory<T> Slice(int start);
member this.Slice : int -> Memory<'T>
Public Function Slice (start As Integer) As Memory(Of T)
Parameters
The index at which to begin the slice.
ReturnsAn object that contains all elements of the current instance from start
to the end of the instance.
start
is less than zero or greater than Length.
Forms a slice out of the current memory starting at a specified index for a specified length.
public:
Memory<T> Slice(int start, int length);
public Memory<T> Slice(int start, int length);
member this.Slice : int * int -> Memory<'T>
Public Function Slice (start As Integer, length As Integer) As Memory(Of T)
Parameters
The index at which to begin the slice.
The number of elements to include in the slice.
ReturnsAn object that contains length
elements from the current instance starting at start
.
start
is less than zero or greater than Length.
-or-
length
is greater than Length - start
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4