Metodo System::IO::Stream::BeginRead

Stream::BeginRead method

Avvia un’operazione di lettura asincrona.

virtual System::SharedPtr<System::IAsyncResult> System::IO::Stream::BeginRead(System::ArrayPtr<uint8_t> buffer, int offset, int count, System::AsyncCallback callback, System::SharedPtr<System::Object> state)
ParametroTipoDescrizione
bufferSystem::ArrayPtr<uint8_t>Un buffer in cui leggere
offsetintUn offset basato su zero in buffer che indica la posizione da cui iniziare a scrivere i dati letti.
countintIl numero di byte da leggere
callbackSystem::AsyncCallbackUna callback da chiamare al completamento dell’operazione.
statoSystem::SharedPtr<System::Object>Dati forniti dall’utente usati per identificare in modo univoco ogni operazione di lettura asincrona.

ReturnValue

Un oggetto IAsyncResult che rappresenta l’operazione di lettura asincrona avviata.

Vedi anche