Write a segment of memory at the given position asynchronously.

C# | Visual Basic | Managed C++ |
void Write ( long position, ArraySegment<byte> buffer, IOCompletionCallback callback, Object state )
Sub Write ( _ position As Long, _ buffer As ArraySegment(Of Byte), _ callback As IOCompletionCallback, _ state As Object _ )
void Write ( long long position, ArraySegment<unsigned char> buffer, IOCompletionCallback^ callback, Object^ state )

- position (Int64)
- The position to write at.
- buffer (ArraySegment<(Of Byte>))
- The memory buffer that the data should be written from.
- callback (IOCompletionCallback)
- The callback to invoke when the transmission completes or if it fails.
- state (Object)
- The context object to be passed to the callback.