System::IO::FileStream::WriteAsync method
Contents
[
Hide
]FileStream::WriteAsync method
Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.
TaskPtr System::IO::FileStream::WriteAsync(const ArrayPtr<uint8_t> &buffer, int32_t offset, int32_t count, const Threading::CancellationToken &cancellationToken) override
Parameter | Type | Description |
---|---|---|
buffer | const ArrayPtr<uint8_t>& | The array containing the bytes to write. |
offset | int32_t | A 0-based index of the elemnet in buffer at which the subrange to write begins. |
count | int32_t | The number of elements in the subrange to write. |
cancellationToken | const Threading::CancellationToken& | The token to monitor for cancellation requests. |
ReturnValue
A task that represents the asynchronous write operation.
See Also
- Typedef TaskPtr
- Typedef ArrayPtr
- Class CancellationToken
- Class FileStream
- Namespace System::IO
- Library Aspose.PDF for C++