ReadOnlyMemory<T>.Slice 메서드

정의

오버로드

Slice(Int32)

지정된 위치에서 시작하여 끝까지 지정된 메모리 영역에서 조각을 형성합니다.

Slice(Int32, Int32)

length 요소에 대해 start 위치에서 시작하는 지정된 메모리 영역에서 조각을 형성합니다.

Slice(Int32)

지정된 위치에서 시작하여 끝까지 지정된 메모리 영역에서 조각을 형성합니다.

public:
 ReadOnlyMemory<T> Slice(int start);
public ReadOnlyMemory<T> Slice (int start);
member this.Slice : int -> ReadOnlyMemory<'T>
Public Function Slice (start As Integer) As ReadOnlyMemory(Of T)

매개 변수

start
Int32

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

반환

ReadOnlyMemory<T>

원하는 조각을 나타내는 읽기 전용 메모리 영역입니다.

예외

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

적용 대상

Slice(Int32, Int32)

length 요소에 대해 start 위치에서 시작하는 지정된 메모리 영역에서 조각을 형성합니다.

public:
 ReadOnlyMemory<T> Slice(int start, int length);
public ReadOnlyMemory<T> Slice (int start, int length);
member this.Slice : int * int -> ReadOnlyMemory<'T>
Public Function Slice (start As Integer, length As Integer) As ReadOnlyMemory(Of T)

매개 변수

start
Int32

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

length
Int32

조각에 대한 원하는 길이입니다.

반환

ReadOnlyMemory<T>

원하는 조각을 나타내는 읽기 전용 메모리 영역입니다.

예외

start, length 또는 start + length가 현재 인스턴스의 범위를 벗어납니다.

적용 대상