Permalink
Browse files

Fixed exception in BufferedStreamWriter when using with T other than …

…a primitive data type.
  • Loading branch information...
1 parent d905a10 commit 5356155a705ac4c8cbaff696eb5d092495ca1946 @azeno azeno committed Feb 10, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 common/src/core/Utils/Streams/BufferedStreamWriter.cs
@@ -30,7 +30,7 @@ public int Write(T[] buffer, int index, int length, int stride = 1)
if (stride != 1) throw new NotSupportedException();
if (FOffset + length < FBuffer.Length)
{
- Buffer.BlockCopy(buffer, index, FBuffer, FOffset, length);
+ Array.Copy(buffer, index, FBuffer, FOffset, length);
FOffset += length;
}
else

0 comments on commit 5356155

Please sign in to comment.