lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [48/50] [abbrv] lucenenet git commit: Lucene.Net.Core.Support.MemoryMappedFileByteBuffer: Conditionally removing optimized Get and Put overloads because the ReadArray and WriteArray methods are not (yet?) supported in .NET core
Date Wed, 15 Mar 2017 23:50:30 GMT
Lucene.Net.Core.Support.MemoryMappedFileByteBuffer: Conditionally removing optimized Get and
Put overloads because the ReadArray and WriteArray methods are not (yet?) supported in .NET
core


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

Branch: refs/heads/api-work
Commit: d5f473435618374fe475e16fe714d22f736a6932
Parents: d105945
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Mar 16 06:20:46 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Mar 16 06:20:46 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Support/MemoryMappedFileByteBuffer.cs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d5f47343/src/Lucene.Net.Core/Support/MemoryMappedFileByteBuffer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/MemoryMappedFileByteBuffer.cs b/src/Lucene.Net.Core/Support/MemoryMappedFileByteBuffer.cs
index a229209..c0d43fc 100644
--- a/src/Lucene.Net.Core/Support/MemoryMappedFileByteBuffer.cs
+++ b/src/Lucene.Net.Core/Support/MemoryMappedFileByteBuffer.cs
@@ -52,6 +52,7 @@ namespace Lucene.Net.Support
             return _accessor.ReadByte(Ix(CheckIndex(index)));
         }
 
+#if !NETSTANDARD
         // Implementation provided by Vincent Van Den Berghe: http://git.net/ml/general/2017-02/msg31639.html
         public override ByteBuffer Get(byte[] dst, int offset, int length)
         {
@@ -70,6 +71,7 @@ namespace Lucene.Net.Support
 
             return this;
         }
+#endif
 
         public override bool IsDirect
         {
@@ -93,6 +95,7 @@ namespace Lucene.Net.Support
             return this;
         }
 
+#if !NETSTANDARD
         // Implementation provided by Vincent Van Den Berghe: http://git.net/ml/general/2017-02/msg31639.html
         public override ByteBuffer Put(byte[] src, int offset, int length)
         {
@@ -110,7 +113,7 @@ namespace Lucene.Net.Support
             }
             return this;
         }
-
+#endif
 
         public override ByteBuffer Compact()
         {


Mime
View raw message