System.IO.ProxyStream.WriteAsync C# (CSharp) Method

WriteAsync() public method

public WriteAsync ( byte buffer, int offset, int count, System cancellationToken ) : System.Threading.Tasks.Task
buffer byte
offset int
count int
cancellationToken System
return System.Threading.Tasks.Task
		async public override Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken)
		{
			await ParentStream.SaveRestorePositionAsync(async () =>
			{
				ParentStream.Position = Position;
				await ParentStream.WriteAsync(buffer, offset, count, cancellationToken);
			});
		}