Aracılığıyla paylaş


SequenceMarshal.TryGetReadOnlyMemory<T> Yöntem

Tanım

Belirtilen salt okunur diziden salt okunur bellek almayı dener.

public:
generic <typename T>
 static bool TryGetReadOnlyMemory(System::Buffers::ReadOnlySequence<T> sequence, [Runtime::InteropServices::Out] ReadOnlyMemory<T> % memory);
public static bool TryGetReadOnlyMemory<T> (System.Buffers.ReadOnlySequence<T> sequence, out ReadOnlyMemory<T> memory);
static member TryGetReadOnlyMemory : System.Buffers.ReadOnlySequence<'T> * ReadOnlyMemory -> bool
Public Shared Function TryGetReadOnlyMemory(Of T) (sequence As ReadOnlySequence(Of T), ByRef memory As ReadOnlyMemory(Of T)) As Boolean

Tür Parametreleri

T

Salt okunur dizisinin türü.

Parametreler

sequence
ReadOnlySequence<T>

Belleğin alınacağı salt okunur dizi.

memory
ReadOnlyMemory<T>

T türünde döndürülen salt okunur bellek.

Döndürülenler

true salt okunur bellek alınabiliyorsa; aksi takdirde , false.

Şunlara uygulanır