CryptoStream: BeginWrite

BeginWrite

Begins an asynchronous buffer write. Currently the CryptoStream class does not support asynchronous buffer writing.



 Public Function BeginWrite(
	  ByRef Buffer ( ) As Byte,
	  ByVal Offset As Long,
	  ByVal Count As Long,
	  Optional ByVal Callback As AsyncCallback,
	  Optional ByRef State As Variant ) As IAsyncResult

Parameters

Buffer
[ByRef] Byte. The source array to copy the bytes from into the stream.
Offset
[ByVal] Long. The starting index in the source Buffer to begin copying from.
Count
[ByVal] Long. The maximum number of bytes to be copied into the stream.
Callback
[ByVal] Optional. AsyncCallback. A user supplied object to be notified of the finish of the writing.
State
[ByRef] Optional. Variant. User data that can be carried within the IAsyncResult object return.

Return Values

IAsyncResult -  An IAsyncResult object used to identify the corrisponding EndBread and report information about the buffer read.

See Also

Project CorLib Overview

Class CryptoStream Overview