Partager via


BufferedReadStream.EnsureBufferedAsync Méthode

Définition

Surcharges

EnsureBufferedAsync(CancellationToken)

Vérifie que la mémoire tampon n’est pas vide.

EnsureBufferedAsync(Int32, CancellationToken)

Garantit qu’une quantité minimale de données mises en mémoire tampon est disponible.

EnsureBufferedAsync(CancellationToken)

Source:
BufferedReadStream.cs
Source:
BufferedReadStream.cs
Source:
BufferedReadStream.cs

Vérifie que la mémoire tampon n’est pas vide.

public:
 System::Threading::Tasks::Task<bool> ^ EnsureBufferedAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> EnsureBufferedAsync (System.Threading.CancellationToken cancellationToken);
member this.EnsureBufferedAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function EnsureBufferedAsync (cancellationToken As CancellationToken) As Task(Of Boolean)

Paramètres

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Retourne true si la mémoire tampon n’est pas vide ; false sinon.

S’applique à

EnsureBufferedAsync(Int32, CancellationToken)

Source:
BufferedReadStream.cs
Source:
BufferedReadStream.cs
Source:
BufferedReadStream.cs

Garantit qu’une quantité minimale de données mises en mémoire tampon est disponible.

public:
 System::Threading::Tasks::Task<bool> ^ EnsureBufferedAsync(int minCount, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> EnsureBufferedAsync (int minCount, System.Threading.CancellationToken cancellationToken);
member this.EnsureBufferedAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function EnsureBufferedAsync (minCount As Integer, cancellationToken As CancellationToken) As Task(Of Boolean)

Paramètres

minCount
Int32

Quantité minimale de données mises en mémoire tampon.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Retourne true si la quantité minimale de données mises en mémoire tampon est disponible ; false sinon.

S’applique à