summary refs log tree commit diff
path: root/crypto/src/asn1/LimitedInputStream.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-21 13:56:31 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-21 13:56:31 +0700
commitc53008f0f5a295ade456e117b90adcc897a16f83 (patch)
tree354461b8ffaa71d4f8bddb238bb50307cdf3b094 /crypto/src/asn1/LimitedInputStream.cs
parentUse Seek when available (diff)
downloadBouncyCastle.NET-ed25519-c53008f0f5a295ade456e117b90adcc897a16f83.tar.xz
ASN.1 perf. opts
Diffstat (limited to '')
-rw-r--r--crypto/src/asn1/LimitedInputStream.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/LimitedInputStream.cs b/crypto/src/asn1/LimitedInputStream.cs
index 98a45876d..95bf0b63a 100644
--- a/crypto/src/asn1/LimitedInputStream.cs
+++ b/crypto/src/asn1/LimitedInputStream.cs
@@ -21,11 +21,11 @@ namespace Org.BouncyCastle.Asn1
             get { return _limit; }
         }
 
-        protected virtual void SetParentEofDetect(bool on)
+        protected void SetParentEofDetect()
         {
             if (_in is IndefiniteLengthInputStream)
             {
-                ((IndefiniteLengthInputStream)_in).SetEofOn00(on);
+                ((IndefiniteLengthInputStream)_in).SetEofOn00(true);
             }
         }
     }