Memory<T>.Slice 메서드

정의

오버로드

Slice(Int32)

지정된 인덱스로 시작되는 현재 메모리에서 하나의 조각을 형성합니다.

Slice(Int32, Int32)

지정된 인덱스에서 시작하고 지정된 길이만큼 해당하는 현재 메모리에서 벗어난 조각을 형성합니다.

Slice(Int32)

지정된 인덱스로 시작되는 현재 메모리에서 하나의 조각을 형성합니다.

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)

매개 변수

start
Int32

조각을 시작할 인덱스입니다.

반환

Memory<T>

인스턴스의 start부터 끝까지 현재 인스턴스의 모든 요소를 포함하는 개체입니다.

예외

start가 0보다 작거나 Length보다 큽니다.

적용 대상

Slice(Int32, Int32)

지정된 인덱스에서 시작하고 지정된 길이만큼 해당하는 현재 메모리에서 벗어난 조각을 형성합니다.

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)

매개 변수

start
Int32

조각을 시작할 인덱스입니다.

length
Int32

조각에 포함할 요소 수입니다.

반환

Memory<T>

start에서 시작하는 현재 인스턴스의 length 요소를 포함하는 개체입니다.

예외

start가 0보다 작거나 Length보다 큽니다.

또는

lengthLength - start보다 큽니다.

적용 대상