BeginRead Begins an asynchronous read. The calling program must call exactly once for every call to Failing to end an EndRead BeginRead. asynchronous operation before beginning another one can cause undesirable behavior such as a memory leak. IVisaAsyncResult BeginRead(Int32 count); IVisaAsyncResult BeginRead(Int32 count, Object state); IVisaAsyncResult BeginRead(Int32 count, VisaAsyncCallback callback, Object state); IVisaAsyncResult BeginRead(Byte[] buffer); IVisaAsyncResult BeginRead(Byte[] buffer, Object state); IVisaAsyncResult BeginRead(Byte[] buffer, Int64 index, Int64 count); IVisaAsyncResult BeginRead(Byte[] buffer, Int64 index, Int64 count, Object state); IVisaAsyncResult BeginRead(Byte[] buffer, VisaAsyncCallback callback, Object state); IVisaAsyncResult BeginRead(Byte[] buffer, Int64 index, Int64 count, VisaAsyncCallback callback, Object state); Name Description Type The buffer to read data into. For overloads that buffer Byte[] include the calling program is expected to buffer, allocate the buffer. For overloads that do not include the implementation of this method buffer, allocates the buffer. The maximum number of bytes to read. For count Int64 overloads that do not include the default is count, the buffer size. The byte offset in at which to begin writing index Int64 buffer the data read. For overloads that do not include the default is 0. index, The method to be called when the asynchronous callback IVisaAsyncCallback read operation is completed. Overloads that do not include leave it to the calling program to callback check for completion. .
BeginRead Begins an asynchronous read. The calling program must call EndRead exactly once for every call to BeginRead. Failing to end an asynchronous operation before beginning another one can cause undesirable behavior such as a memory leak. IVisaAsyncResult BeginRead(Int32 count); IVisaAsyncResult BeginRead(Int32 count, Object state); IVisaAsyncResult BeginRead(Int32 count, VisaAsyncCallback callback, Object state); IVisaAsyncResult BeginRead(Byte[] buffer); IVisaAsyncResult BeginRead(Byte[] buffer, Object state); IVisaAsyncResult BeginRead(Byte[] buffer, Int64 index, Int64 count); IVisaAsyncResult BeginRead(Byte[] buffer, Int64 index, Int64 count, Object state); IVisaAsyncResult BeginRead(Byte[] buffer, VisaAsyncCallback callback, Object state); IVisaAsyncResult BeginRead(Byte[] buffer, Int64 index, Int64 count, VisaAsyncCallback callback, Object state); Name Description Type buffer The buffer to read data into. For overloads that include buffer, the calling program is expected to allocate the buffer. For overloads that do not include buffer, the implementation of this method allocates the buffer. Byte[] count The maximum number of bytes to read. For overloads that do not include count, the default is the buffer size. Int64 index The byte offset in buffer at which to begin writing the data read. For overloads that do not include index, the default is 0. Int64 callback The method to be called when the asynchronous read operation is completed. Overloads that do not include callback leave it to the calling program to check for completion. . IVisaAsyncCallback