ZLibStream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object) Metodo

Definizione

Avvia un'operazione di scrittura asincrona.

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

Parametri

buffer
Byte[]

Buffer da cui scrivere i dati.

offset
Int32

Offset di byte in da buffer cui iniziare la scrittura.

count
Int32

Numero massimo di byte da scrivere.

asyncCallback
AsyncCallback

Callback asincrono facoltativo da chiamare al termine dell'operazione di scrittura.

asyncState
Object

Oggetto fornito dall'utente che distingue questa particolare richiesta di scrittura asincrona da altre richieste.

Valori restituiti

Oggetto che rappresenta l'operazione di scrittura asincrona, che potrebbe essere ancora in sospeso.

Eccezioni

buffer è null.

offset è minore di zero.

oppure

offset e count non erano limiti per la matrice.

oppure

count è maggiore del numero di elementi da offset alla fine di buffer.

Si applica a