Bump corefx
[mono.git] / mcs / class / System / System.IO.Compression / DeflateStream.cs
index 9d8dd61eb2415641247d742c0cc3f77c7130ed3f..354a16e39e39ce67361fbd28fbd1e0701cb88e0a 100644 (file)
@@ -130,6 +130,11 @@ namespace System.IO.Compression
                        }
                }
 
+               internal int ReadCore (Span<byte> destination)
+               {
+                       throw new NotImplementedException ();
+               }
+
                public override int Read (byte[] array, int offset, int count)
                {
                        if (disposed)
@@ -160,6 +165,11 @@ namespace System.IO.Compression
                        }
                }
 
+               internal void WriteCore (ReadOnlySpan<byte> source)
+               {
+                       throw new NotImplementedException ();
+               }
+
                public override void Write (byte[] array, int offset, int count)
                {
                        if (disposed)
@@ -486,6 +496,7 @@ namespace System.IO.Compression
                const string LIBNAME = "MonoPosixHelper";
 #endif
 
+#if !ORBIS
                [DllImport (LIBNAME, CallingConvention=CallingConvention.Cdecl)]
                static extern IntPtr CreateZStream (CompressionMode compress, bool gzip, UnmanagedReadOrWrite feeder, IntPtr data);
 
@@ -500,6 +511,33 @@ namespace System.IO.Compression
 
                [DllImport (LIBNAME, CallingConvention=CallingConvention.Cdecl)]
                static extern int WriteZStream (IntPtr stream, IntPtr buffer, int length);
+#else
+               static IntPtr CreateZStream (CompressionMode compress, bool gzip, UnmanagedReadOrWrite feeder, IntPtr data)
+               {
+                       throw new PlatformNotSupportedException ();
+               }
+
+               static int CloseZStream (IntPtr stream)
+               {
+                       throw new PlatformNotSupportedException ();
+               }
+
+               static int Flush (IntPtr stream)
+               {
+                       throw new PlatformNotSupportedException ();
+               }
+
+               static int ReadZStream (IntPtr stream, IntPtr buffer, int length)
+               {
+                       throw new PlatformNotSupportedException ();
+               }
+
+               static int WriteZStream (IntPtr stream, IntPtr buffer, int length)
+               {
+                       throw new PlatformNotSupportedException ();
+               }
+#endif
+
        }
 }