Member group
Slice
Declaring type: ReadOnlyMemory<T>
Module: System
Assembly: System.Runtime.dll
Source file: ReadOnlyMemory.rvn
Overloads / Variants
Slice
func Slice(range: Range) -> ReadOnlyMemory<T>
Source file: ReadOnlyMemory.rvn
Retains a half-open range relative to this window.
Parameters
| Name | Type | Description |
|---|---|---|
range |
Range |
Return value
Slice
func Slice(start: int, length: int) -> ReadOnlyMemory<T>
Source file: ReadOnlyMemory.rvn
Retains a nested window. Invalid bounds fault; elements are not copied.
Parameters
| Name | Type | Description |
|---|---|---|
start |
Int32 | |
length |
Int32 |
Return value
Slice
func Slice(start: int) -> ReadOnlyMemory<T>
Source file: ReadOnlyMemory.rvn
Retains a window from start to the end.
Parameters
| Name | Type | Description |
|---|---|---|
start |
Int32 |