Modified:
branches/5.0/CHANGES
branches/5.0/Driver/Source/datareader.cs
Log:
Changed from using Array.Copy to Buffer.BlockCopy in MySqlDataReader.GetBytes. This helps
with memory usage as we expect the source and destination arrays to not be overlapping.
(Bug #31090)
Modified: branches/5.0/CHANGES
===================================================================
--- branches/5.0/CHANGES 2007-09-21 18:36:23 UTC (rev 1016)
+++ branches/5.0/CHANGES 2007-09-21 20:59:48 UTC (rev 1017)
@@ -2,8 +2,10 @@
- Fixed problem where fields that were blobs but did not include the BLOB flag were
treated
as binary when they should have been treated as text. (Bug #30233)
+ - Changed from using Array.Copy to Buffer.BlockCopy in MySqlDataReader.GetBytes. This
+ helps with memory usage as we expect the source and destination arrays to not be
overlapping.
+ (Bug #31090)
-
Version 5.0.8 8/16/2007
Bug #28706 Log messages are truncated
Modified: branches/5.0/Driver/Source/datareader.cs
===================================================================
--- branches/5.0/Driver/Source/datareader.cs 2007-09-21 18:36:23 UTC (rev 1016)
+++ branches/5.0/Driver/Source/datareader.cs 2007-09-21 20:59:48 UTC (rev 1017)
@@ -276,7 +276,7 @@
length = (int)((ulong)binary.Value.Length - (ulong)dataIndex);
}
- Array.Copy(bytes, (int)dataIndex, buffer, bufferIndex, length);
+ Buffer.BlockCopy(bytes, (int)dataIndex, buffer, bufferIndex, length);
return length;
}
| Thread |
|---|
| • Connector/NET commit: r1017 - in branches/5.0: . Driver/Source | rburnett | 21 Sep |