BrotliStream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) Método

Definição

Inicia uma operação de leitura assíncrona.Begins an asynchronous read operation. (Considere o uso do método ReadAsync(Byte[], Int32, Int32) em seu lugar.)(Consider using the ReadAsync(Byte[], Int32, Int32) method instead.)

public:
 override IAsyncResult ^ BeginRead(cli::array <System::Byte> ^ buffer, int offset, int count, AsyncCallback ^ asyncCallback, System::Object ^ asyncState);
public override IAsyncResult BeginRead (byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState);
public override IAsyncResult BeginRead (byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState);
override this.BeginRead : byte[] * int * int * AsyncCallback * obj -> IAsyncResult
Public Overrides Function BeginRead (buffer As Byte(), offset As Integer, count As Integer, asyncCallback As AsyncCallback, asyncState As Object) As IAsyncResult

Parâmetros

buffer
Byte[]

O buffer do qual os dados serão lidos.The buffer from which data will be read.

offset
Int32

O deslocamento de bytes no array no qual será iniciada a leitura de dados no fluxo.The byte offset in array at which to begin reading data from the stream.

count
Int32

Número máximo de bytes a serem lidos.To maximum number of bytes to read.

asyncCallback
AsyncCallback

Um retorno de chamada assíncrono opcional, a ser chamado quando a operação de leitura for concluída.An optional asynchronous callback, to be called when the read operation is complete.

asyncState
Object

Um objeto fornecido pelo usuário que distingue essa solicitação de leitura assíncrona específica de outras solicitações.A user-provided object that distinguishes this particular asynchronous read request from other requests.

Retornos

IAsyncResult

Um objeto que representa a operação de leitura assíncrona, que ainda pode estar pendente.An object that represents the asynchronous read operation, which could still be pending.

Exceções

O método tentou fazer uma leitura assíncrona após o final do fluxo ou ocorreu um erro de disco.The method tried to read asynchronously past the end of the stream, or a disk error occurred.

Um ou mais argumentos são inválidos.One or more of the arguments is invalid.

Foram chamados métodos depois que o fluxo foi fechado.Methods were called after the stream was closed.

A implementação BrotliStream atual não dá suporte à operação de leitura.The current BrotliStream implementation does not support the read operation.

Essa chamada não pode ser concluída.This call cannot be completed.

Aplica-se a