lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [46/50] [abbrv] lucenenet git commit: Lucene.Net.Core.Store.RAMInputStream: Reverted Buffer.BlockCopy back to Array.Copy
Date Sun, 05 Mar 2017 11:49:25 GMT
Lucene.Net.Core.Store.RAMInputStream: Reverted Buffer.BlockCopy back to Array.Copy


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/0a8fa0d5
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/0a8fa0d5
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/0a8fa0d5

Branch: refs/heads/api-work
Commit: 0a8fa0d58639e7b39b1c344af1e27fb5a3807e9e
Parents: 59ebea0
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Mar 5 16:38:29 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Mar 5 17:08:52 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Store/RAMInputStream.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0a8fa0d5/src/Lucene.Net.Core/Store/RAMInputStream.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Store/RAMInputStream.cs b/src/Lucene.Net.Core/Store/RAMInputStream.cs
index 78d34d2..18c2898 100644
--- a/src/Lucene.Net.Core/Store/RAMInputStream.cs
+++ b/src/Lucene.Net.Core/Store/RAMInputStream.cs
@@ -86,7 +86,7 @@ namespace Lucene.Net.Store
 
                 int remainInBuffer = bufferLength - bufferPosition;
                 int bytesToCopy = len < remainInBuffer ? len : remainInBuffer;
-                System.Buffer.BlockCopy(currentBuffer, bufferPosition, b, offset, bytesToCopy);
+                System.Array.Copy(currentBuffer, bufferPosition, b, offset, bytesToCopy);
                 offset += bytesToCopy;
                 len -= bytesToCopy;
                 bufferPosition += bytesToCopy;


Mime
View raw message