From 615f6b20e1d6bbea5e5055cdfe199ec55b2a9f23 Mon Sep 17 00:00:00 2001 From: js6pak Date: Mon, 10 Oct 2022 17:34:44 +0200 Subject: [PATCH] Add a pointer constructor back to StreamWrapper --- Reactor/Utilities/Extensions/StreamExtensions.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Reactor/Utilities/Extensions/StreamExtensions.cs b/Reactor/Utilities/Extensions/StreamExtensions.cs index 5595af9..2536fab 100644 --- a/Reactor/Utilities/Extensions/StreamExtensions.cs +++ b/Reactor/Utilities/Extensions/StreamExtensions.cs @@ -21,6 +21,12 @@ public static class StreamExtensions { private readonly Stream _stream; + /// + public StreamWrapper(IntPtr pointer) : base(pointer) + { + throw new NotSupportedException("This shouldn't ever be called because StreamWrapper is injected from managed side"); + } + /// public StreamWrapper(Stream stream) : base(ClassInjector.DerivedConstructorPointer()) {