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

Definizione

Inizia 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 dei byte nel parametro buffer da cui iniziare la scrittura.

count
Int32

Numero massimo di byte da scrivere.

asyncCallback
AsyncCallback

Callback asincrono facoltativo, da chiamare quando l'operazione di scrittura è completa.

asyncState
Object

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

Restituisce

Oggetto che rappresenta l'operazione di scrittura asincrona che può essere ancora in sospeso.

Eccezioni

buffer è null.

offset è minore di zero.

-oppure-

offset e count non sono stati associati per la matrice.

-oppure-

count è maggiore del numero di elementi compresi tra offset e la fine di buffer.

Si applica a