diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2017-10-06 09:45:10 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2017-10-06 09:45:10 +0300 |
commit | 5afb5950c037a3b06ce2005ec5bf436d6be0f860 (patch) | |
tree | de404fa0788d60776571bfefc6bf0faee535d917 /profiles | |
parent | 627333cae84f02a36ee9ca605c96dac4557d9f35 (diff) |
Apply changes from https://github.com/mono/mono/pull/5327 to API snapshot
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/monodroid/System.Numerics.cs | 5 | ||||
-rw-r--r-- | profiles/monodroid/System.cs | 3 | ||||
-rw-r--r-- | profiles/monodroid/mscorlib.cs | 63 | ||||
-rw-r--r-- | profiles/monotouch/System.Numerics.cs | 5 | ||||
-rw-r--r-- | profiles/monotouch/System.cs | 3 | ||||
-rw-r--r-- | profiles/monotouch/mscorlib.cs | 63 | ||||
-rw-r--r-- | profiles/net_4_x/System.Drawing.cs | 2 | ||||
-rw-r--r-- | profiles/net_4_x/System.Numerics.cs | 5 | ||||
-rw-r--r-- | profiles/net_4_x/System.cs | 4 | ||||
-rw-r--r-- | profiles/net_4_x/mscorlib.cs | 63 |
10 files changed, 212 insertions, 4 deletions
diff --git a/profiles/monodroid/System.Numerics.cs b/profiles/monodroid/System.Numerics.cs index 50fdcbb..9a5c30d 100644 --- a/profiles/monodroid/System.Numerics.cs +++ b/profiles/monodroid/System.Numerics.cs @@ -32,6 +32,7 @@ namespace System.Numerics public BigInteger(double value) { throw null;} public BigInteger(int value) { throw null;} public BigInteger(long value) { throw null;} + public BigInteger(System.ReadOnlySpan<byte> value) { throw null;} public BigInteger(float value) { throw null;} [System.CLSCompliantAttribute(false)] public BigInteger(uint value) { throw null;} @@ -60,6 +61,7 @@ namespace System.Numerics public override bool Equals(object obj) { throw null; } [System.CLSCompliantAttribute(false)] public bool Equals(ulong other) { throw null; } + public int GetByteCount() { throw null; } public override int GetHashCode() { throw null; } public static System.Numerics.BigInteger GreatestCommonDivisor(System.Numerics.BigInteger left, System.Numerics.BigInteger right) { throw null; } public static double Log(System.Numerics.BigInteger value) { throw null; } @@ -157,6 +159,7 @@ namespace System.Numerics public static System.Numerics.BigInteger operator -(System.Numerics.BigInteger left, System.Numerics.BigInteger right) { throw null; } public static System.Numerics.BigInteger operator -(System.Numerics.BigInteger value) { throw null; } public static System.Numerics.BigInteger operator +(System.Numerics.BigInteger value) { throw null; } + public static System.Numerics.BigInteger Parse(System.ReadOnlySpan<char> value, System.Globalization.NumberStyles style=(System.Globalization.NumberStyles)(7), System.IFormatProvider provider=null) { throw null; } public static System.Numerics.BigInteger Parse(string value) { throw null; } public static System.Numerics.BigInteger Parse(string value, System.Globalization.NumberStyles style) { throw null; } public static System.Numerics.BigInteger Parse(string value, System.Globalization.NumberStyles style, System.IFormatProvider provider) { throw null; } @@ -169,8 +172,10 @@ namespace System.Numerics public string ToString(System.IFormatProvider provider) { throw null; } public string ToString(string format) { throw null; } public string ToString(string format, System.IFormatProvider provider) { throw null; } + public static bool TryParse(System.ReadOnlySpan<char> value, out System.Numerics.BigInteger result, System.Globalization.NumberStyles style=(System.Globalization.NumberStyles)(7), System.IFormatProvider provider=null) { result = default(System.Numerics.BigInteger); throw null; } public static bool TryParse(string value, System.Globalization.NumberStyles style, System.IFormatProvider provider, out System.Numerics.BigInteger result) { result = default(System.Numerics.BigInteger); throw null; } public static bool TryParse(string value, out System.Numerics.BigInteger result) { result = default(System.Numerics.BigInteger); throw null; } + public bool TryWriteBytes(System.Span<byte> destination, out int bytesWritten) { bytesWritten = default(int); throw null; } } [System.SerializableAttribute] [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] diff --git a/profiles/monodroid/System.cs b/profiles/monodroid/System.cs index 88bdb09..dbfb8c3 100644 --- a/profiles/monodroid/System.cs +++ b/profiles/monodroid/System.cs @@ -5317,6 +5317,7 @@ namespace System.IO.Compression public override long Position { get { throw null; } set { } } public override System.IAsyncResult BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) { throw null; } public override System.IAsyncResult BeginWrite(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) { throw null; } + public override void CopyTo(System.IO.Stream destination, int bufferSize) { } public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; } protected override void Dispose(bool disposing) { } public override int EndRead(System.IAsyncResult asyncResult) { throw null; } @@ -5324,11 +5325,13 @@ namespace System.IO.Compression public override void Flush() { } public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public override int Read(byte[] array, int offset, int count) { throw null; } + public override int Read(System.Span<byte> destination) { throw null; } public override System.Threading.Tasks.Task<int> ReadAsync(byte[] array, int offset, int count, 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[] array, int offset, int count) { } + public override void Write(System.ReadOnlySpan<byte> source) { } public override System.Threading.Tasks.Task WriteAsync(byte[] array, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } } } diff --git a/profiles/monodroid/mscorlib.cs b/profiles/monodroid/mscorlib.cs index fb09b52..7fcd5ca 100644 --- a/profiles/monodroid/mscorlib.cs +++ b/profiles/monodroid/mscorlib.cs @@ -2496,6 +2496,7 @@ namespace System [System.Security.SecuritySafeCriticalAttribute] public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public static bool IsFinite(System.Double d) { throw null; } [System.Security.SecuritySafeCriticalAttribute] public static bool IsInfinity(System.Double d) { throw null; } [System.Runtime.ConstrainedExecution.ReliabilityContractAttribute((System.Runtime.ConstrainedExecution.Consistency)(3), (System.Runtime.ConstrainedExecution.Cer)(2))] @@ -3842,6 +3843,32 @@ namespace System public RankException(string message) { } public RankException(string message, System.Exception innerException) { } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public partial struct ReadOnlySpan<T> + { + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public unsafe ReadOnlySpan(void* pointer, int length) { throw null;} + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ReadOnlySpan(T[] array) { throw null;} + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ReadOnlySpan(T[] array, int start, int length) { throw null;} + public static System.ReadOnlySpan<T> Empty { get { throw null; } } + public bool IsEmpty { get { throw null; } } + public T this[int index] { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } + public int Length { get { throw null; } } + public void CopyTo(System.Span<T> destination) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public static System.ReadOnlySpan<T> DangerousCreate(object obj, ref T objectData, int length) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ref T DangerousGetPinnableReference() { throw null; } + [System.ObsoleteAttribute("Equals() on Span will always throw an exception. Use == instead.")] + public override bool Equals(object obj) { throw null; } + [System.ObsoleteAttribute("GetHashCode() on Span will always throw an exception.")] + public override int GetHashCode() { throw null; } + public static bool operator ==(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; } + public static implicit operator System.ReadOnlySpan<T> (System.ArraySegment<T> arraySegment) { throw null; } + public static implicit operator System.ReadOnlySpan<T> (T[] array) { throw null; } + public static bool operator !=(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(int start) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(int start, int length) { throw null; } + public T[] ToArray() { throw null; } + public bool TryCopyTo(System.Span<T> destination) { throw null; } + } [System.Runtime.InteropServices.ComVisibleAttribute(true)] public partial class ResolveEventArgs : System.EventArgs { @@ -3982,6 +4009,7 @@ namespace System [System.Security.SecuritySafeCriticalAttribute] public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public static bool IsFinite(System.Single f) { throw null; } [System.Security.SecuritySafeCriticalAttribute] public static bool IsInfinity(System.Single f) { throw null; } [System.Runtime.ConstrainedExecution.ReliabilityContractAttribute((System.Runtime.ConstrainedExecution.Consistency)(3), (System.Runtime.ConstrainedExecution.Cer)(2))] @@ -4027,6 +4055,37 @@ namespace System public static bool TryParse(string s, System.Globalization.NumberStyles style, System.IFormatProvider provider, out System.Single result) { result = default(float); throw null; } public static bool TryParse(string s, out System.Single result) { result = default(float); throw null; } } + [System.Diagnostics.DebuggerDisplayAttribute("Length = {Length}")] + [System.Diagnostics.DebuggerTypeProxyAttribute("System.SpanDebugView<T>")] + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public partial struct Span<T> + { + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public unsafe Span(void* pointer, int length) { throw null;} + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public Span(T[] array) { throw null;} + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public Span(T[] array, int start, int length) { throw null;} + public static System.Span<T> Empty { get { throw null; } } + public bool IsEmpty { get { throw null; } } + public ref T this[int index] { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } + public int Length { get { throw null; } } + public void Clear() { } + public void CopyTo(System.Span<T> destination) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public static System.Span<T> DangerousCreate(object obj, ref T objectData, int length) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ref T DangerousGetPinnableReference() { throw null; } + [System.ObsoleteAttribute("Equals() on Span will always throw an exception. Use == instead.")] + public override bool Equals(object obj) { throw null; } + public void Fill(T value) { } + [System.ObsoleteAttribute("GetHashCode() on Span will always throw an exception.")] + public override int GetHashCode() { throw null; } + public static bool operator ==(System.Span<T> left, System.Span<T> right) { throw null; } + public static implicit operator System.Span<T> (System.ArraySegment<T> arraySegment) { throw null; } + public static implicit operator System.ReadOnlySpan<T> (System.Span<T> span) { throw null; } + public static implicit operator System.Span<T> (T[] array) { throw null; } + public static bool operator !=(System.Span<T> left, System.Span<T> right) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(int start) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(int start, int length) { throw null; } + public T[] ToArray() { throw null; } + public bool TryCopyTo(System.Span<T> destination) { throw null; } + } [System.Runtime.InteropServices.ComVisibleAttribute(true)] [System.SerializableAttribute] public sealed partial class StackOverflowException : System.SystemException @@ -9243,7 +9302,7 @@ namespace System.IO public virtual System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback callback, object state) { throw null; } public virtual void Close() { } public void CopyTo(System.IO.Stream destination) { } - public void CopyTo(System.IO.Stream destination, int bufferSize) { } + public virtual void CopyTo(System.IO.Stream destination, int bufferSize) { } [System.Runtime.InteropServices.ComVisibleAttribute(false)] [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination) { throw null; } @@ -9269,6 +9328,7 @@ namespace System.IO [System.ObsoleteAttribute("Do not call or override this method.")] protected virtual void ObjectInvariant() { } public abstract int Read([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]byte[] buffer, int offset, int count); + public virtual int Read(System.Span<byte> destination) { throw null; } [System.Runtime.InteropServices.ComVisibleAttribute(false)] [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int count) { throw null; } @@ -9281,6 +9341,7 @@ namespace System.IO [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Synchronization=true)] public static System.IO.Stream Synchronized(System.IO.Stream stream) { throw null; } public abstract void Write(byte[] buffer, int offset, int count); + public virtual void Write(System.ReadOnlySpan<byte> source) { } [System.Runtime.InteropServices.ComVisibleAttribute(false)] [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count) { throw null; } diff --git a/profiles/monotouch/System.Numerics.cs b/profiles/monotouch/System.Numerics.cs index 50fdcbb..9a5c30d 100644 --- a/profiles/monotouch/System.Numerics.cs +++ b/profiles/monotouch/System.Numerics.cs @@ -32,6 +32,7 @@ namespace System.Numerics public BigInteger(double value) { throw null;} public BigInteger(int value) { throw null;} public BigInteger(long value) { throw null;} + public BigInteger(System.ReadOnlySpan<byte> value) { throw null;} public BigInteger(float value) { throw null;} [System.CLSCompliantAttribute(false)] public BigInteger(uint value) { throw null;} @@ -60,6 +61,7 @@ namespace System.Numerics public override bool Equals(object obj) { throw null; } [System.CLSCompliantAttribute(false)] public bool Equals(ulong other) { throw null; } + public int GetByteCount() { throw null; } public override int GetHashCode() { throw null; } public static System.Numerics.BigInteger GreatestCommonDivisor(System.Numerics.BigInteger left, System.Numerics.BigInteger right) { throw null; } public static double Log(System.Numerics.BigInteger value) { throw null; } @@ -157,6 +159,7 @@ namespace System.Numerics public static System.Numerics.BigInteger operator -(System.Numerics.BigInteger left, System.Numerics.BigInteger right) { throw null; } public static System.Numerics.BigInteger operator -(System.Numerics.BigInteger value) { throw null; } public static System.Numerics.BigInteger operator +(System.Numerics.BigInteger value) { throw null; } + public static System.Numerics.BigInteger Parse(System.ReadOnlySpan<char> value, System.Globalization.NumberStyles style=(System.Globalization.NumberStyles)(7), System.IFormatProvider provider=null) { throw null; } public static System.Numerics.BigInteger Parse(string value) { throw null; } public static System.Numerics.BigInteger Parse(string value, System.Globalization.NumberStyles style) { throw null; } public static System.Numerics.BigInteger Parse(string value, System.Globalization.NumberStyles style, System.IFormatProvider provider) { throw null; } @@ -169,8 +172,10 @@ namespace System.Numerics public string ToString(System.IFormatProvider provider) { throw null; } public string ToString(string format) { throw null; } public string ToString(string format, System.IFormatProvider provider) { throw null; } + public static bool TryParse(System.ReadOnlySpan<char> value, out System.Numerics.BigInteger result, System.Globalization.NumberStyles style=(System.Globalization.NumberStyles)(7), System.IFormatProvider provider=null) { result = default(System.Numerics.BigInteger); throw null; } public static bool TryParse(string value, System.Globalization.NumberStyles style, System.IFormatProvider provider, out System.Numerics.BigInteger result) { result = default(System.Numerics.BigInteger); throw null; } public static bool TryParse(string value, out System.Numerics.BigInteger result) { result = default(System.Numerics.BigInteger); throw null; } + public bool TryWriteBytes(System.Span<byte> destination, out int bytesWritten) { bytesWritten = default(int); throw null; } } [System.SerializableAttribute] [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] diff --git a/profiles/monotouch/System.cs b/profiles/monotouch/System.cs index a5340a2..d88e742 100644 --- a/profiles/monotouch/System.cs +++ b/profiles/monotouch/System.cs @@ -5321,6 +5321,7 @@ namespace System.IO.Compression public override long Position { get { throw null; } set { } } public override System.IAsyncResult BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) { throw null; } public override System.IAsyncResult BeginWrite(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) { throw null; } + public override void CopyTo(System.IO.Stream destination, int bufferSize) { } public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; } protected override void Dispose(bool disposing) { } public override int EndRead(System.IAsyncResult asyncResult) { throw null; } @@ -5328,11 +5329,13 @@ namespace System.IO.Compression public override void Flush() { } public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public override int Read(byte[] array, int offset, int count) { throw null; } + public override int Read(System.Span<byte> destination) { throw null; } public override System.Threading.Tasks.Task<int> ReadAsync(byte[] array, int offset, int count, 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[] array, int offset, int count) { } + public override void Write(System.ReadOnlySpan<byte> source) { } public override System.Threading.Tasks.Task WriteAsync(byte[] array, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } } } diff --git a/profiles/monotouch/mscorlib.cs b/profiles/monotouch/mscorlib.cs index 8b58726..c8890f9 100644 --- a/profiles/monotouch/mscorlib.cs +++ b/profiles/monotouch/mscorlib.cs @@ -2476,6 +2476,7 @@ namespace System [System.Security.SecuritySafeCriticalAttribute] public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public static bool IsFinite(System.Double d) { throw null; } [System.Security.SecuritySafeCriticalAttribute] public static bool IsInfinity(System.Double d) { throw null; } [System.Runtime.ConstrainedExecution.ReliabilityContractAttribute((System.Runtime.ConstrainedExecution.Consistency)(3), (System.Runtime.ConstrainedExecution.Cer)(2))] @@ -3822,6 +3823,32 @@ namespace System public RankException(string message) { } public RankException(string message, System.Exception innerException) { } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public partial struct ReadOnlySpan<T> + { + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public unsafe ReadOnlySpan(void* pointer, int length) { throw null;} + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ReadOnlySpan(T[] array) { throw null;} + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ReadOnlySpan(T[] array, int start, int length) { throw null;} + public static System.ReadOnlySpan<T> Empty { get { throw null; } } + public bool IsEmpty { get { throw null; } } + public T this[int index] { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } + public int Length { get { throw null; } } + public void CopyTo(System.Span<T> destination) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public static System.ReadOnlySpan<T> DangerousCreate(object obj, ref T objectData, int length) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ref T DangerousGetPinnableReference() { throw null; } + [System.ObsoleteAttribute("Equals() on Span will always throw an exception. Use == instead.")] + public override bool Equals(object obj) { throw null; } + [System.ObsoleteAttribute("GetHashCode() on Span will always throw an exception.")] + public override int GetHashCode() { throw null; } + public static bool operator ==(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; } + public static implicit operator System.ReadOnlySpan<T> (System.ArraySegment<T> arraySegment) { throw null; } + public static implicit operator System.ReadOnlySpan<T> (T[] array) { throw null; } + public static bool operator !=(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(int start) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(int start, int length) { throw null; } + public T[] ToArray() { throw null; } + public bool TryCopyTo(System.Span<T> destination) { throw null; } + } [System.Runtime.InteropServices.ComVisibleAttribute(true)] public partial class ResolveEventArgs : System.EventArgs { @@ -3962,6 +3989,7 @@ namespace System [System.Security.SecuritySafeCriticalAttribute] public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public static bool IsFinite(System.Single f) { throw null; } [System.Security.SecuritySafeCriticalAttribute] public static bool IsInfinity(System.Single f) { throw null; } [System.Runtime.ConstrainedExecution.ReliabilityContractAttribute((System.Runtime.ConstrainedExecution.Consistency)(3), (System.Runtime.ConstrainedExecution.Cer)(2))] @@ -4007,6 +4035,37 @@ namespace System public static bool TryParse(string s, System.Globalization.NumberStyles style, System.IFormatProvider provider, out System.Single result) { result = default(float); throw null; } public static bool TryParse(string s, out System.Single result) { result = default(float); throw null; } } + [System.Diagnostics.DebuggerDisplayAttribute("Length = {Length}")] + [System.Diagnostics.DebuggerTypeProxyAttribute("System.SpanDebugView<T>")] + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public partial struct Span<T> + { + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public unsafe Span(void* pointer, int length) { throw null;} + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public Span(T[] array) { throw null;} + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public Span(T[] array, int start, int length) { throw null;} + public static System.Span<T> Empty { get { throw null; } } + public bool IsEmpty { get { throw null; } } + public ref T this[int index] { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } + public int Length { get { throw null; } } + public void Clear() { } + public void CopyTo(System.Span<T> destination) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public static System.Span<T> DangerousCreate(object obj, ref T objectData, int length) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ref T DangerousGetPinnableReference() { throw null; } + [System.ObsoleteAttribute("Equals() on Span will always throw an exception. Use == instead.")] + public override bool Equals(object obj) { throw null; } + public void Fill(T value) { } + [System.ObsoleteAttribute("GetHashCode() on Span will always throw an exception.")] + public override int GetHashCode() { throw null; } + public static bool operator ==(System.Span<T> left, System.Span<T> right) { throw null; } + public static implicit operator System.Span<T> (System.ArraySegment<T> arraySegment) { throw null; } + public static implicit operator System.ReadOnlySpan<T> (System.Span<T> span) { throw null; } + public static implicit operator System.Span<T> (T[] array) { throw null; } + public static bool operator !=(System.Span<T> left, System.Span<T> right) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(int start) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(int start, int length) { throw null; } + public T[] ToArray() { throw null; } + public bool TryCopyTo(System.Span<T> destination) { throw null; } + } [System.Runtime.InteropServices.ComVisibleAttribute(true)] [System.SerializableAttribute] public sealed partial class StackOverflowException : System.SystemException @@ -9214,7 +9273,7 @@ namespace System.IO public virtual System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback callback, object state) { throw null; } public virtual void Close() { } public void CopyTo(System.IO.Stream destination) { } - public void CopyTo(System.IO.Stream destination, int bufferSize) { } + public virtual void CopyTo(System.IO.Stream destination, int bufferSize) { } [System.Runtime.InteropServices.ComVisibleAttribute(false)] [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination) { throw null; } @@ -9240,6 +9299,7 @@ namespace System.IO [System.ObsoleteAttribute("Do not call or override this method.")] protected virtual void ObjectInvariant() { } public abstract int Read([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]byte[] buffer, int offset, int count); + public virtual int Read(System.Span<byte> destination) { throw null; } [System.Runtime.InteropServices.ComVisibleAttribute(false)] [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int count) { throw null; } @@ -9252,6 +9312,7 @@ namespace System.IO [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Synchronization=true)] public static System.IO.Stream Synchronized(System.IO.Stream stream) { throw null; } public abstract void Write(byte[] buffer, int offset, int count); + public virtual void Write(System.ReadOnlySpan<byte> source) { } [System.Runtime.InteropServices.ComVisibleAttribute(false)] [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count) { throw null; } diff --git a/profiles/net_4_x/System.Drawing.cs b/profiles/net_4_x/System.Drawing.cs index 9ed1994..1daaa96 100644 --- a/profiles/net_4_x/System.Drawing.cs +++ b/profiles/net_4_x/System.Drawing.cs @@ -2307,7 +2307,7 @@ namespace System.Drawing.Drawing2D public float BaseInset { get { throw null; } set { } } public System.Drawing.Drawing2D.LineJoin StrokeJoin { get { throw null; } set { } } public float WidthScale { get { throw null; } set { } } - public object Clone() { throw null; } + public virtual object Clone() { throw null; } public void Dispose() { } protected virtual void Dispose(bool disposing) { } ~CustomLineCap() { } diff --git a/profiles/net_4_x/System.Numerics.cs b/profiles/net_4_x/System.Numerics.cs index 48df09a..a6501e3 100644 --- a/profiles/net_4_x/System.Numerics.cs +++ b/profiles/net_4_x/System.Numerics.cs @@ -32,6 +32,7 @@ namespace System.Numerics public BigInteger(double value) { throw null;} public BigInteger(int value) { throw null;} public BigInteger(long value) { throw null;} + public BigInteger(System.ReadOnlySpan<byte> value) { throw null;} public BigInteger(float value) { throw null;} [System.CLSCompliantAttribute(false)] public BigInteger(uint value) { throw null;} @@ -60,6 +61,7 @@ namespace System.Numerics public override bool Equals(object obj) { throw null; } [System.CLSCompliantAttribute(false)] public bool Equals(ulong other) { throw null; } + public int GetByteCount() { throw null; } public override int GetHashCode() { throw null; } public static System.Numerics.BigInteger GreatestCommonDivisor(System.Numerics.BigInteger left, System.Numerics.BigInteger right) { throw null; } public static double Log(System.Numerics.BigInteger value) { throw null; } @@ -157,6 +159,7 @@ namespace System.Numerics public static System.Numerics.BigInteger operator -(System.Numerics.BigInteger left, System.Numerics.BigInteger right) { throw null; } public static System.Numerics.BigInteger operator -(System.Numerics.BigInteger value) { throw null; } public static System.Numerics.BigInteger operator +(System.Numerics.BigInteger value) { throw null; } + public static System.Numerics.BigInteger Parse(System.ReadOnlySpan<char> value, System.Globalization.NumberStyles style=(System.Globalization.NumberStyles)(7), System.IFormatProvider provider=null) { throw null; } public static System.Numerics.BigInteger Parse(string value) { throw null; } public static System.Numerics.BigInteger Parse(string value, System.Globalization.NumberStyles style) { throw null; } public static System.Numerics.BigInteger Parse(string value, System.Globalization.NumberStyles style, System.IFormatProvider provider) { throw null; } @@ -169,8 +172,10 @@ namespace System.Numerics public string ToString(System.IFormatProvider provider) { throw null; } public string ToString(string format) { throw null; } public string ToString(string format, System.IFormatProvider provider) { throw null; } + public static bool TryParse(System.ReadOnlySpan<char> value, out System.Numerics.BigInteger result, System.Globalization.NumberStyles style=(System.Globalization.NumberStyles)(7), System.IFormatProvider provider=null) { result = default(System.Numerics.BigInteger); throw null; } public static bool TryParse(string value, System.Globalization.NumberStyles style, System.IFormatProvider provider, out System.Numerics.BigInteger result) { result = default(System.Numerics.BigInteger); throw null; } public static bool TryParse(string value, out System.Numerics.BigInteger result) { result = default(System.Numerics.BigInteger); throw null; } + public bool TryWriteBytes(System.Span<byte> destination, out int bytesWritten) { bytesWritten = default(int); throw null; } } [System.SerializableAttribute] [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] diff --git a/profiles/net_4_x/System.cs b/profiles/net_4_x/System.cs index cb4a302..3b0a683 100644 --- a/profiles/net_4_x/System.cs +++ b/profiles/net_4_x/System.cs @@ -1786,6 +1786,7 @@ namespace System.CodeDom.Compiler CaseInsensitive = 1, None = 0, } + [System.SerializableAttribute] public partial class TempFileCollection : System.Collections.ICollection, System.Collections.IEnumerable, System.IDisposable { public TempFileCollection() { } @@ -7735,6 +7736,7 @@ namespace System.IO.Compression public override long Position { get { throw null; } set { } } public override System.IAsyncResult BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) { throw null; } public override System.IAsyncResult BeginWrite(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState) { throw null; } + public override void CopyTo(System.IO.Stream destination, int bufferSize) { } public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; } protected override void Dispose(bool disposing) { } public override int EndRead(System.IAsyncResult asyncResult) { throw null; } @@ -7742,11 +7744,13 @@ namespace System.IO.Compression public override void Flush() { } public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } public override int Read(byte[] array, int offset, int count) { throw null; } + public override int Read(System.Span<byte> destination) { throw null; } public override System.Threading.Tasks.Task<int> ReadAsync(byte[] array, int offset, int count, 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[] array, int offset, int count) { } + public override void Write(System.ReadOnlySpan<byte> source) { } public override System.Threading.Tasks.Task WriteAsync(byte[] array, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } } } diff --git a/profiles/net_4_x/mscorlib.cs b/profiles/net_4_x/mscorlib.cs index c91cf06..657a213 100644 --- a/profiles/net_4_x/mscorlib.cs +++ b/profiles/net_4_x/mscorlib.cs @@ -2546,6 +2546,7 @@ namespace System [System.Security.SecuritySafeCriticalAttribute] public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public static bool IsFinite(System.Double d) { throw null; } [System.Security.SecuritySafeCriticalAttribute] public static bool IsInfinity(System.Double d) { throw null; } [System.Runtime.ConstrainedExecution.ReliabilityContractAttribute((System.Runtime.ConstrainedExecution.Consistency)(3), (System.Runtime.ConstrainedExecution.Cer)(2))] @@ -3891,6 +3892,32 @@ namespace System public RankException(string message) { } public RankException(string message, System.Exception innerException) { } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public partial struct ReadOnlySpan<T> + { + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public unsafe ReadOnlySpan(void* pointer, int length) { throw null;} + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ReadOnlySpan(T[] array) { throw null;} + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ReadOnlySpan(T[] array, int start, int length) { throw null;} + public static System.ReadOnlySpan<T> Empty { get { throw null; } } + public bool IsEmpty { get { throw null; } } + public T this[int index] { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } + public int Length { get { throw null; } } + public void CopyTo(System.Span<T> destination) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public static System.ReadOnlySpan<T> DangerousCreate(object obj, ref T objectData, int length) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ref T DangerousGetPinnableReference() { throw null; } + [System.ObsoleteAttribute("Equals() on Span will always throw an exception. Use == instead.")] + public override bool Equals(object obj) { throw null; } + [System.ObsoleteAttribute("GetHashCode() on Span will always throw an exception.")] + public override int GetHashCode() { throw null; } + public static bool operator ==(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; } + public static implicit operator System.ReadOnlySpan<T> (System.ArraySegment<T> arraySegment) { throw null; } + public static implicit operator System.ReadOnlySpan<T> (T[] array) { throw null; } + public static bool operator !=(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(int start) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.ReadOnlySpan<T> Slice(int start, int length) { throw null; } + public T[] ToArray() { throw null; } + public bool TryCopyTo(System.Span<T> destination) { throw null; } + } [System.Runtime.InteropServices.ComVisibleAttribute(true)] public partial class ResolveEventArgs : System.EventArgs { @@ -4031,6 +4058,7 @@ namespace System [System.Security.SecuritySafeCriticalAttribute] public override int GetHashCode() { throw null; } public System.TypeCode GetTypeCode() { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public static bool IsFinite(System.Single f) { throw null; } [System.Security.SecuritySafeCriticalAttribute] public static bool IsInfinity(System.Single f) { throw null; } [System.Runtime.ConstrainedExecution.ReliabilityContractAttribute((System.Runtime.ConstrainedExecution.Consistency)(3), (System.Runtime.ConstrainedExecution.Cer)(2))] @@ -4076,6 +4104,37 @@ namespace System public static bool TryParse(string s, System.Globalization.NumberStyles style, System.IFormatProvider provider, out System.Single result) { result = default(float); throw null; } public static bool TryParse(string s, out System.Single result) { result = default(float); throw null; } } + [System.Diagnostics.DebuggerDisplayAttribute("Length = {Length}")] + [System.Diagnostics.DebuggerTypeProxyAttribute("System.SpanDebugView<T>")] + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public partial struct Span<T> + { + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public unsafe Span(void* pointer, int length) { throw null;} + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public Span(T[] array) { throw null;} + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public Span(T[] array, int start, int length) { throw null;} + public static System.Span<T> Empty { get { throw null; } } + public bool IsEmpty { get { throw null; } } + public ref T this[int index] { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]get { throw null; } } + public int Length { get { throw null; } } + public void Clear() { } + public void CopyTo(System.Span<T> destination) { } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public static System.Span<T> DangerousCreate(object obj, ref T objectData, int length) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public ref T DangerousGetPinnableReference() { throw null; } + [System.ObsoleteAttribute("Equals() on Span will always throw an exception. Use == instead.")] + public override bool Equals(object obj) { throw null; } + public void Fill(T value) { } + [System.ObsoleteAttribute("GetHashCode() on Span will always throw an exception.")] + public override int GetHashCode() { throw null; } + public static bool operator ==(System.Span<T> left, System.Span<T> right) { throw null; } + public static implicit operator System.Span<T> (System.ArraySegment<T> arraySegment) { throw null; } + public static implicit operator System.ReadOnlySpan<T> (System.Span<T> span) { throw null; } + public static implicit operator System.Span<T> (T[] array) { throw null; } + public static bool operator !=(System.Span<T> left, System.Span<T> right) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(int start) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public System.Span<T> Slice(int start, int length) { throw null; } + public T[] ToArray() { throw null; } + public bool TryCopyTo(System.Span<T> destination) { throw null; } + } [System.Runtime.InteropServices.ComVisibleAttribute(true)] [System.SerializableAttribute] public sealed partial class StackOverflowException : System.SystemException @@ -9286,7 +9345,7 @@ namespace System.IO public virtual System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback callback, object state) { throw null; } public virtual void Close() { } public void CopyTo(System.IO.Stream destination) { } - public void CopyTo(System.IO.Stream destination, int bufferSize) { } + public virtual void CopyTo(System.IO.Stream destination, int bufferSize) { } [System.Runtime.InteropServices.ComVisibleAttribute(false)] [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination) { throw null; } @@ -9312,6 +9371,7 @@ namespace System.IO [System.ObsoleteAttribute("Do not call or override this method.")] protected virtual void ObjectInvariant() { } public abstract int Read([System.Runtime.InteropServices.In][System.Runtime.InteropServices.Out]byte[] buffer, int offset, int count); + public virtual int Read(System.Span<byte> destination) { throw null; } [System.Runtime.InteropServices.ComVisibleAttribute(false)] [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int count) { throw null; } @@ -9324,6 +9384,7 @@ namespace System.IO [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Synchronization=true)] public static System.IO.Stream Synchronized(System.IO.Stream stream) { throw null; } public abstract void Write(byte[] buffer, int offset, int count); + public virtual void Write(System.ReadOnlySpan<byte> source) { } [System.Runtime.InteropServices.ComVisibleAttribute(false)] [System.Security.Permissions.HostProtectionAttribute(System.Security.Permissions.SecurityAction.LinkDemand, ExternalThreading=true)] public System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count) { throw null; } |