SequenceReader<T>.TryCopyTo(Span<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies data from the current position to the given destination span if there is enough data to fill it.
public:
bool TryCopyTo(Span<T> destination);
public readonly bool TryCopyTo (Span<T> destination);
member this.TryCopyTo : Span<'T (requires 'T : struct)> -> bool
Public Function TryCopyTo (destination As Span(Of T)) As Boolean
Parameters
- destination
- Span<T>
Destination span to copy to.
Returns
true
if there is enough data to completely fill the destination
span; otherwise, false
.
Remarks
This method copies a fixed amount of data out of the sequence if possible. It does not advance the reader. To look ahead for a specific stream of data, use IsNext(ReadOnlySpan<T>, Boolean).
Applies to
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre