diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2019-09-19 15:46:03 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2019-09-19 15:46:03 +0300 |
commit | f6a7e9020a7f33bbb855a12658945d691ee93e3d (patch) | |
tree | c85c9cdb697a9e3ce5907aeb22e1611111cd378a | |
parent | 34e1a5ded9cd56c982d564a5f61bb21a011d6de4 (diff) |
Apply changes from https://github.com/mono/mono/pull/16889 to API snapshot
-rw-r--r-- | profiles/monodroid/System.cs | 12 | ||||
-rw-r--r-- | profiles/monotouch/System.cs | 12 | ||||
-rw-r--r-- | profiles/net_4_x/System.cs | 12 |
3 files changed, 27 insertions, 9 deletions
diff --git a/profiles/monodroid/System.cs b/profiles/monodroid/System.cs index 0d6b344..704096f 100644 --- a/profiles/monodroid/System.cs +++ b/profiles/monodroid/System.cs @@ -7993,9 +7993,7 @@ namespace System.Net.Sockets protected System.Net.Sockets.Socket Socket { get { throw null; } } protected bool Writeable { get { throw null; } set { } } public override int WriteTimeout { get { throw null; } set { } } - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) { throw null; } - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) { throw null; } public void Close(int timeout) { } protected override void Dispose(bool disposing) { } @@ -8004,10 +8002,18 @@ namespace System.Net.Sockets ~NetworkStream() { } public override void Flush() { } public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - public override int Read([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]byte[] buffer, int offset, int size) { throw null; } + public override int Read(byte[] buffer, int offset, int size) { throw null; } + public override int Read(System.Span<byte> destination) { throw null; } + public override System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int size, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<byte> buffer, System.Threading.CancellationToken cancellationToken) { throw null; } + public override int ReadByte() { throw null; } public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; } public override void SetLength(long value) { } public override void Write(byte[] buffer, int offset, int size) { } + public override void Write(System.ReadOnlySpan<byte> source) { } + public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int size, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> buffer, System.Threading.CancellationToken cancellationToken) { throw null; } + public override void WriteByte(byte value) { } } public enum ProtocolFamily { diff --git a/profiles/monotouch/System.cs b/profiles/monotouch/System.cs index 3627807..298c1f4 100644 --- a/profiles/monotouch/System.cs +++ b/profiles/monotouch/System.cs @@ -7996,9 +7996,7 @@ namespace System.Net.Sockets protected System.Net.Sockets.Socket Socket { get { throw null; } } protected bool Writeable { get { throw null; } set { } } public override int WriteTimeout { get { throw null; } set { } } - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) { throw null; } - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) { throw null; } public void Close(int timeout) { } protected override void Dispose(bool disposing) { } @@ -8007,10 +8005,18 @@ namespace System.Net.Sockets ~NetworkStream() { } public override void Flush() { } public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - public override int Read([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]byte[] buffer, int offset, int size) { throw null; } + public override int Read(byte[] buffer, int offset, int size) { throw null; } + public override int Read(System.Span<byte> destination) { throw null; } + public override System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int size, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<byte> buffer, System.Threading.CancellationToken cancellationToken) { throw null; } + public override int ReadByte() { throw null; } public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; } public override void SetLength(long value) { } public override void Write(byte[] buffer, int offset, int size) { } + public override void Write(System.ReadOnlySpan<byte> source) { } + public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int size, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> buffer, System.Threading.CancellationToken cancellationToken) { throw null; } + public override void WriteByte(byte value) { } } public enum ProtocolFamily { diff --git a/profiles/net_4_x/System.cs b/profiles/net_4_x/System.cs index 1617e73..dcedb60 100644 --- a/profiles/net_4_x/System.cs +++ b/profiles/net_4_x/System.cs @@ -11129,9 +11129,7 @@ namespace System.Net.Sockets protected System.Net.Sockets.Socket Socket { get { throw null; } } protected bool Writeable { get { throw null; } set { } } public override int WriteTimeout { get { throw null; } set { } } - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) { throw null; } - [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) { throw null; } public void Close(int timeout) { } protected override void Dispose(bool disposing) { } @@ -11140,10 +11138,18 @@ namespace System.Net.Sockets ~NetworkStream() { } public override void Flush() { } public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - public override int Read([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]byte[] buffer, int offset, int size) { throw null; } + public override int Read(byte[] buffer, int offset, int size) { throw null; } + public override int Read(System.Span<byte> destination) { throw null; } + public override System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int size, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<byte> buffer, System.Threading.CancellationToken cancellationToken) { throw null; } + public override int ReadByte() { throw null; } public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; } public override void SetLength(long value) { } public override void Write(byte[] buffer, int offset, int size) { } + public override void Write(System.ReadOnlySpan<byte> source) { } + public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int size, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> buffer, System.Threading.CancellationToken cancellationToken) { throw null; } + public override void WriteByte(byte value) { } } public enum ProtocolFamily { |