IOutputStream.WriteAsync(IBuffer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes data asynchronously in a sequential stream.
public:
IAsyncOperationWithProgress<unsigned int, unsigned int> ^ WriteAsync(IBuffer ^ buffer);
IAsyncOperationWithProgress<uint32_t, uint32_t> WriteAsync(IBuffer const& buffer);
public IAsyncOperationWithProgress<uint,uint> WriteAsync(IBuffer buffer);
function writeAsync(buffer)
Public Function WriteAsync (buffer As IBuffer) As IAsyncOperationWithProgress(Of UInteger, UInteger)
Parameters
- buffer
- IBuffer
A buffer that contains the data to be written.
Returns
Windows.Foundation.IAsyncOperationWithProgress<unsigned int,unsigned int>
IAsyncOperationWithProgress<uint32_t,uint32_t>
The byte writer operation. The first integer represents the number of bytes written. The second integer represents the progress of the write operation.
Remarks
Some stream implementations support queuing of write operations. In this case, the asynchronous execution of the WriteAsync method does not complete until the FlushAsync method has completed. For the buffer parameter, you don't have to implement the IBuffer interface. Instead, you can create an instance of the Buffer class or create a buffer by using methods in the CryptographicBuffer class.
Also consider writing a buffer into an IOutputStream by using the WriteBuffer method of the DataWriter class.
Applies to
प्रतिक्रिया
https://aka.ms/ContentUserFeedback.
जल्द आ रहा है: 2024 के दौरान हम सामग्री के लिए फीडबैक तंत्र के रूप में GitHub मुद्दों को चरणबद्ध तरीके से समाप्त कर देंगे और इसे एक नई फीडबैक प्रणाली से बदल देंगे. अधिक जानकारी के लिए, देखें:के लिए प्रतिक्रिया सबमिट करें और देखें