ReadOnlyMemory<T> ReadOnlyMemory<T> ReadOnlyMemory<T> ReadOnlyMemory<T> Struct

定義

generic <typename T>
public value class ReadOnlyMemory
public struct ReadOnlyMemory<T>
type ReadOnlyMemory<'T> = struct
Public Structure ReadOnlyMemory(Of T)

類型參數

T
繼承
ReadOnlyMemory<T>ReadOnlyMemory<T>ReadOnlyMemory<T>ReadOnlyMemory<T>

建構函式

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

屬性

Empty Empty Empty Empty
IsEmpty IsEmpty IsEmpty IsEmpty
Length Length Length Length
Span Span Span Span

方法

CopyTo(Memory<T>) CopyTo(Memory<T>) CopyTo(Memory<T>) CopyTo(Memory<T>)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)
Equals(ReadOnlyMemory<T>) Equals(ReadOnlyMemory<T>) Equals(ReadOnlyMemory<T>) Equals(ReadOnlyMemory<T>)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()
Pin() Pin() Pin() Pin()
Slice(Int32) Slice(Int32) Slice(Int32) Slice(Int32)
Slice(Int32, Int32) Slice(Int32, Int32) Slice(Int32, Int32) Slice(Int32, Int32)
ToArray() ToArray() ToArray() ToArray()
ToString() ToString() ToString() ToString()
TryCopyTo(Memory<T>) TryCopyTo(Memory<T>) TryCopyTo(Memory<T>) TryCopyTo(Memory<T>)

運算子

Implicit(ArraySegment<T> to ReadOnlyMemory<T>) Implicit(ArraySegment<T> to ReadOnlyMemory<T>) Implicit(ArraySegment<T> to ReadOnlyMemory<T>) Implicit(ArraySegment<T> to ReadOnlyMemory<T>)
Implicit(T[] to ReadOnlyMemory<T>) Implicit(T[] to ReadOnlyMemory<T>) Implicit(T[] to ReadOnlyMemory<T>) Implicit(T[] to ReadOnlyMemory<T>)

適用於