mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
Add a pointer constructor back to StreamWrapper
This commit is contained in:
1 file changed
+6
@@ -21,6 +21,12 @@ public static class StreamExtensions
|
||||
{
|
||||
private readonly Stream _stream;
|
||||
|
||||
/// <inheritdoc />
|
||||
public StreamWrapper(IntPtr pointer) : base(pointer)
|
||||
{
|
||||
throw new NotSupportedException("This shouldn't ever be called because StreamWrapper is injected from managed side");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public StreamWrapper(Stream stream) : base(ClassInjector.DerivedConstructorPointer<StreamWrapper>())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user