From 33bfecea50249ddc55c2acc3da5930a1feebbf40 Mon Sep 17 00:00:00 2001 From: AlinMoldovean Date: Thu, 11 Apr 2019 13:34:42 +0300 Subject: [PATCH] Add getter for stream in BinaryDecoder --- Stack/Opc.Ua.Core/Types/Encoders/BinaryDecoder.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Stack/Opc.Ua.Core/Types/Encoders/BinaryDecoder.cs b/Stack/Opc.Ua.Core/Types/Encoders/BinaryDecoder.cs index 3cba6fb10e..f7d6271521 100644 --- a/Stack/Opc.Ua.Core/Types/Encoders/BinaryDecoder.cs +++ b/Stack/Opc.Ua.Core/Types/Encoders/BinaryDecoder.cs @@ -125,6 +125,17 @@ namespace Opc.Ua get { return (int)m_reader.BaseStream.Position; } } + /// + /// Gets the stream that the decoder is reading from. + /// + public Stream BaseStream + { + get + { + return m_reader.BaseStream; + } + } + /// /// Decodes a message from a stream. ///