Optimise MySqlBulkCopy.WriteBytes.
Optimise MySqlBulkCopy.WriteBytes.

This uses a couple of techniques illustrated in https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-5/.

mysql-net/MySqlConnector,mysql-net/MySqlConnector