MemoryExtensions.AsMemory 메서드

정의

오버로드

AsMemory(String)

대상 문자열 부분에 대해 새로운 ReadOnlyMemory<Char>를 만듭니다.

AsMemory(String, Index)

지정된 인덱스에서 시작하는 대상 문자열 부분에 대해 새로운 ReadOnlyMemory<Char>를 만듭니다.

AsMemory(String, Int32)

지정된 문자 위치에서 시작하는 대상 문자열 부분에 대해 새로운 ReadOnlyMemory<Char>를 만듭니다.

AsMemory(String, Range)

대상 문자열의 지정된 범위에 대해 새로운 ReadOnlyMemory<Char>를 만듭니다.

AsMemory(String, Int32, Int32)

길이가 있는 지정된 위치에서 시작하는 대상 문자열 부분에 대해 새로운 ReadOnlyMemory<Char>를 만듭니다.

AsMemory<T>(ArraySegment<T>)

대상 배열 세그먼트 부분에 대해 새 메모리 영역을 만듭니다.

AsMemory<T>(T[])

대상 배열에 대해 새 메모리 영역을 만듭니다.

AsMemory<T>(ArraySegment<T>, Int32)

세그먼트 끝까지 지정된 위치에서 시작하는 대상 배열 세그먼트 부분에 대해 새 메모리 영역을 만듭니다.

AsMemory<T>(T[], Index)

배열 끝의 지정된 인덱스에서 시작하는 대상 배열 부분에 대해 새 메모리 영역을 만듭니다.

AsMemory<T>(T[], Int32)

배열 끝의 지정된 위치에서 시작하는 대상 배열 부분에 대해 새 메모리 영역을 만듭니다.

AsMemory<T>(T[], Range)

범위의 포괄 시작 인덱스에서 시작하여 범위의 단독 끝 인덱스에서 끝나는 대상 배열 부분에 대해 새 메모리 영역을 만듭니다.

AsMemory<T>(ArraySegment<T>, Int32, Int32)

지정된 길이를 사용하여 지정된 위치에서 시작하는 대상 배열 세그먼트 부분에 대해 새 메모리 영역을 만듭니다.

AsMemory<T>(T[], Int32, Int32)

지정된 길이를 사용하여 지정된 위치에서 시작하는 대상 배열 부분에 대해 새 메모리 영역을 만듭니다.

AsMemory(String)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

대상 문자열 부분에 대해 새로운 ReadOnlyMemory<Char>를 만듭니다.

public:
[System::Runtime::CompilerServices::Extension]
 static ReadOnlyMemory<char> AsMemory(System::String ^ text);
public static ReadOnlyMemory<char> AsMemory (this string? text);
public static ReadOnlyMemory<char> AsMemory (this string text);
static member AsMemory : string -> ReadOnlyMemory<char>
<Extension()>
Public Function AsMemory (text As String) As ReadOnlyMemory(Of Char)

매개 변수

text
String

대상 문자열입니다.

반환

문자열의 읽기 전용 문자 메모리 표현 또는 textnull인 경우 default입니다.

설명

가 인 경우 text 기본값을 null반환합니다.

적용 대상

AsMemory(String, Index)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

지정된 인덱스에서 시작하는 대상 문자열 부분에 대해 새로운 ReadOnlyMemory<Char>를 만듭니다.

public:
[System::Runtime::CompilerServices::Extension]
 static ReadOnlyMemory<char> AsMemory(System::String ^ text, Index startIndex);
public static ReadOnlyMemory<char> AsMemory (this string? text, Index startIndex);
public static ReadOnlyMemory<char> AsMemory (this string text, Index startIndex);
static member AsMemory : string * Index -> ReadOnlyMemory<char>
<Extension()>
Public Function AsMemory (text As String, startIndex As Index) As ReadOnlyMemory(Of Char)

매개 변수

text
String

대상 문자열입니다.

startIndex
Index

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

반환

문자열의 읽기 전용 문자 메모리 표현입니다.

적용 대상

AsMemory(String, Int32)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

지정된 문자 위치에서 시작하는 대상 문자열 부분에 대해 새로운 ReadOnlyMemory<Char>를 만듭니다.

public:
[System::Runtime::CompilerServices::Extension]
 static ReadOnlyMemory<char> AsMemory(System::String ^ text, int start);
public static ReadOnlyMemory<char> AsMemory (this string? text, int start);
public static ReadOnlyMemory<char> AsMemory (this string text, int start);
static member AsMemory : string * int -> ReadOnlyMemory<char>
<Extension()>
Public Function AsMemory (text As String, start As Integer) As ReadOnlyMemory(Of Char)

매개 변수

text
String

대상 문자열입니다.

start
Int32

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

반환

문자열의 읽기 전용 문자 메모리 표현 또는 textnull인 경우 default입니다.

예외

start가 의 범위에 text 있지 않습니다(start 가 0 또는 >text.Length)인 경우 <

설명

가 인 경우 text 기본값을 null반환합니다.

적용 대상

AsMemory(String, Range)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

대상 문자열의 지정된 범위에 대해 새로운 ReadOnlyMemory<Char>를 만듭니다.

public:
[System::Runtime::CompilerServices::Extension]
 static ReadOnlyMemory<char> AsMemory(System::String ^ text, Range range);
public static ReadOnlyMemory<char> AsMemory (this string? text, Range range);
public static ReadOnlyMemory<char> AsMemory (this string text, Range range);
static member AsMemory : string * Range -> ReadOnlyMemory<char>
<Extension()>
Public Function AsMemory (text As String, range As Range) As ReadOnlyMemory(Of Char)

매개 변수

text
String

대상 문자열입니다.

range
Range

조각화된 문자열의 시작과 길이를 나타내는 범위입니다.

반환

문자열의 읽기 전용 문자 메모리 표현입니다.

적용 대상

AsMemory(String, Int32, Int32)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

길이가 있는 지정된 위치에서 시작하는 대상 문자열 부분에 대해 새로운 ReadOnlyMemory<Char>를 만듭니다.

public:
[System::Runtime::CompilerServices::Extension]
 static ReadOnlyMemory<char> AsMemory(System::String ^ text, int start, int length);
public static ReadOnlyMemory<char> AsMemory (this string? text, int start, int length);
public static ReadOnlyMemory<char> AsMemory (this string text, int start, int length);
static member AsMemory : string * int * int -> ReadOnlyMemory<char>
<Extension()>
Public Function AsMemory (text As String, start As Integer, length As Integer) As ReadOnlyMemory(Of Char)

매개 변수

text
String

대상 문자열입니다.

start
Int32

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

length
Int32

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

반환

문자열의 읽기 전용 문자 메모리 표현 또는 textnull인 경우 default입니다.

예외

start, length 또는 start + lengthtext의 범위에 없습니다.

설명

가 인 경우 text 기본값을 null반환합니다.

적용 대상

AsMemory<T>(ArraySegment<T>)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

대상 배열 세그먼트 부분에 대해 새 메모리 영역을 만듭니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Memory<T> AsMemory(ArraySegment<T> segment);
public static Memory<T> AsMemory<T> (this ArraySegment<T> segment);
static member AsMemory : ArraySegment<'T> -> Memory<'T>
<Extension()>
Public Function AsMemory(Of T) (segment As ArraySegment(Of T)) As Memory(Of T)

형식 매개 변수

T

세그먼트의 형식입니다.

매개 변수

segment
ArraySegment<T>

변환할 세그먼트입니다.

반환

세그먼트의 메모리 표현입니다.

적용 대상

AsMemory<T>(T[])

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

대상 배열에 대해 새 메모리 영역을 만듭니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Memory<T> AsMemory(cli::array <T> ^ array);
public static Memory<T> AsMemory<T> (this T[]? array);
public static Memory<T> AsMemory<T> (this T[] array);
static member AsMemory : 'T[] -> Memory<'T>
<Extension()>
Public Function AsMemory(Of T) (array As T()) As Memory(Of T)

형식 매개 변수

T

배열의 형식입니다.

매개 변수

array
T[]

변환할 배열입니다.

반환

배열의 전체 또는 부분에 대한 메모리 표현입니다.

적용 대상

AsMemory<T>(ArraySegment<T>, Int32)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

세그먼트 끝까지 지정된 위치에서 시작하는 대상 배열 세그먼트 부분에 대해 새 메모리 영역을 만듭니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Memory<T> AsMemory(ArraySegment<T> segment, int start);
public static Memory<T> AsMemory<T> (this ArraySegment<T> segment, int start);
static member AsMemory : ArraySegment<'T> * int -> Memory<'T>
<Extension()>
Public Function AsMemory(Of T) (segment As ArraySegment(Of T), start As Integer) As Memory(Of T)

형식 매개 변수

T

배열의 형식입니다.

매개 변수

segment
ArraySegment<T>

대상 배열 세그먼트입니다.

start
Int32

메모리를 시작할 인덱스입니다.

반환

배열의 전체 또는 부분에 대한 메모리 표현입니다.

예외

segment는 공변(covariant)이고, segment의 형식은 정확히 T[]가 아닙니다.

start가 0보다 작거나 segment.Count보다 큽니다.

설명

가 인 경우 segment 를 반환합니다.defaultnull

적용 대상

AsMemory<T>(T[], Index)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

배열 끝의 지정된 인덱스에서 시작하는 대상 배열 부분에 대해 새 메모리 영역을 만듭니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Memory<T> AsMemory(cli::array <T> ^ array, Index startIndex);
public static Memory<T> AsMemory<T> (this T[]? array, Index startIndex);
public static Memory<T> AsMemory<T> (this T[] array, Index startIndex);
static member AsMemory : 'T[] * Index -> Memory<'T>
<Extension()>
Public Function AsMemory(Of T) (array As T(), startIndex As Index) As Memory(Of T)

형식 매개 변수

T

배열의 형식입니다.

매개 변수

array
T[]

변환할 배열입니다.

startIndex
Index

배열의 첫 번째 위치입니다.

반환

배열의 전체 또는 부분에 대한 메모리 표현입니다.

적용 대상

AsMemory<T>(T[], Int32)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

배열 끝의 지정된 위치에서 시작하는 대상 배열 부분에 대해 새 메모리 영역을 만듭니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Memory<T> AsMemory(cli::array <T> ^ array, int start);
public static Memory<T> AsMemory<T> (this T[]? array, int start);
public static Memory<T> AsMemory<T> (this T[] array, int start);
static member AsMemory : 'T[] * int -> Memory<'T>
<Extension()>
Public Function AsMemory(Of T) (array As T(), start As Integer) As Memory(Of T)

형식 매개 변수

T

배열의 형식입니다.

매개 변수

array
T[]

대상 배열입니다.

start
Int32

메모리를 시작할 인덱스입니다.

반환

배열의 전체 또는 부분에 대한 메모리 표현입니다.

예외

array은 공변(covariant)이고, 배열의 형식은 정확히 T[]가 아닙니다.

start 인덱스는 0보다 작거나 array.Length보다 큽니다.

설명

가 인 경우 array 를 반환합니다.defaultnull

적용 대상

AsMemory<T>(T[], Range)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

범위의 포괄 시작 인덱스에서 시작하여 범위의 단독 끝 인덱스에서 끝나는 대상 배열 부분에 대해 새 메모리 영역을 만듭니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Memory<T> AsMemory(cli::array <T> ^ array, Range range);
public static Memory<T> AsMemory<T> (this T[]? array, Range range);
public static Memory<T> AsMemory<T> (this T[] array, Range range);
static member AsMemory : 'T[] * Range -> Memory<'T>
<Extension()>
Public Function AsMemory(Of T) (array As T(), range As Range) As Memory(Of T)

형식 매개 변수

T

배열의 형식입니다.

매개 변수

array
T[]

변환할 배열입니다.

range
Range

배열에서 변환할 범위입니다.

반환

배열의 전체 또는 부분에 대한 메모리 표현입니다.

적용 대상

AsMemory<T>(ArraySegment<T>, Int32, Int32)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

지정된 길이를 사용하여 지정된 위치에서 시작하는 대상 배열 세그먼트 부분에 대해 새 메모리 영역을 만듭니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Memory<T> AsMemory(ArraySegment<T> segment, int start, int length);
public static Memory<T> AsMemory<T> (this ArraySegment<T> segment, int start, int length);
static member AsMemory : ArraySegment<'T> * int * int -> Memory<'T>
<Extension()>
Public Function AsMemory(Of T) (segment As ArraySegment(Of T), start As Integer, length As Integer) As Memory(Of T)

형식 매개 변수

T

배열의 형식입니다.

매개 변수

segment
ArraySegment<T>

대상 배열 세그먼트입니다.

start
Int32

메모리를 시작할 인덱스입니다.

length
Int32

메모리의 항목 수입니다.

반환

배열의 전체 또는 부분에 대한 메모리 표현입니다.

예외

segment은 공변(covariant)이고, 배열의 형식은 정확히 T[]가 아닙니다.

start, length 또는 start + lengthsegment의 범위에 없습니다.

설명

가 인 경우 segment 를 반환합니다.defaultnull

적용 대상

AsMemory<T>(T[], Int32, Int32)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

지정된 길이를 사용하여 지정된 위치에서 시작하는 대상 배열 부분에 대해 새 메모리 영역을 만듭니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Memory<T> AsMemory(cli::array <T> ^ array, int start, int length);
public static Memory<T> AsMemory<T> (this T[]? array, int start, int length);
public static Memory<T> AsMemory<T> (this T[] array, int start, int length);
static member AsMemory : 'T[] * int * int -> Memory<'T>
<Extension()>
Public Function AsMemory(Of T) (array As T(), start As Integer, length As Integer) As Memory(Of T)

형식 매개 변수

T

배열의 형식입니다.

매개 변수

array
T[]

대상 배열입니다.

start
Int32

메모리 영역을 시작할 인덱스입니다.

length
Int32

메모리 영역에 있는 항목 수입니다.

반환

배열의 전체 또는 부분에 대한 메모리 표현입니다.

예외

array은 공변(covariant)이고, 배열의 형식은 정확히 T[]가 아닙니다.

start, length 또는 start + lengtharray의 범위에 없습니다.

설명

가 인 경우 array 를 반환합니다.defaultnull

적용 대상