Regenerate ref assembly and add nullable annotations to ref assembly for System.Text...
authorSantiago Fernandez Madero <safern@microsoft.com>
Thu, 20 Jun 2019 22:35:53 +0000 (15:35 -0700)
committerGitHub <noreply@github.com>
Thu, 20 Jun 2019 22:35:53 +0000 (15:35 -0700)
* Regenerate ref assembly against implementation

* Add nullable annotations to ref assembly

Commit migrated from https://github.com/dotnet/corefx/commit/1f4de5dff6dbfad36662af015142db5f6cb317f7

src/libraries/System.Text.Encoding.Extensions/ref/System.Text.Encoding.Extensions.cs
src/libraries/System.Text.Encoding.Extensions/ref/System.Text.Encoding.Extensions.csproj

index f171ff46d19d4fc6bdf8160e3abf44a947dc8e7c..f828d45adf12a45e9c16e140980f5e2af7366f23 100644 (file)
@@ -14,17 +14,21 @@ namespace System.Text
         [System.CLSCompliantAttribute(false)]
         public unsafe override int GetByteCount(char* chars, int count) { throw null; }
         public override int GetByteCount(char[] chars, int index, int count) { throw null; }
+        public override int GetByteCount(System.ReadOnlySpan<char> chars) { throw null; }
         public override int GetByteCount(string chars) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public unsafe override int GetBytes(char* chars, int charCount, byte* bytes, int byteCount) { throw null; }
         public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; }
+        public override int GetBytes(System.ReadOnlySpan<char> chars, System.Span<byte> bytes) { throw null; }
         public override int GetBytes(string chars, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public unsafe override int GetCharCount(byte* bytes, int count) { throw null; }
         public override int GetCharCount(byte[] bytes, int index, int count) { throw null; }
+        public override int GetCharCount(System.ReadOnlySpan<byte> bytes) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public unsafe override int GetChars(byte* bytes, int byteCount, char* chars, int charCount) { throw null; }
         public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex) { throw null; }
+        public override int GetChars(System.ReadOnlySpan<byte> bytes, System.Span<char> chars) { throw null; }
         public override System.Text.Decoder GetDecoder() { throw null; }
         public override System.Text.Encoder GetEncoder() { throw null; }
         public override int GetMaxByteCount(int charCount) { throw null; }
@@ -37,7 +41,8 @@ namespace System.Text
         public UnicodeEncoding() { }
         public UnicodeEncoding(bool bigEndian, bool byteOrderMark) { }
         public UnicodeEncoding(bool bigEndian, bool byteOrderMark, bool throwOnInvalidBytes) { }
-        public override bool Equals(object value) { throw null; }
+        public override System.ReadOnlySpan<byte> Preamble { get { throw null; } }
+        public override bool Equals(object? value) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public unsafe override int GetByteCount(char* chars, int count) { throw null; }
         public override int GetByteCount(char[] chars, int index, int count) { throw null; }
@@ -65,7 +70,8 @@ namespace System.Text
         public UTF32Encoding() { }
         public UTF32Encoding(bool bigEndian, bool byteOrderMark) { }
         public UTF32Encoding(bool bigEndian, bool byteOrderMark, bool throwOnInvalidCharacters) { }
-        public override bool Equals(object value) { throw null; }
+        public override System.ReadOnlySpan<byte> Preamble { get { throw null; } }
+        public override bool Equals(object? value) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public unsafe override int GetByteCount(char* chars, int count) { throw null; }
         public override int GetByteCount(char[] chars, int index, int count) { throw null; }
@@ -92,7 +98,7 @@ namespace System.Text
     {
         public UTF7Encoding() { }
         public UTF7Encoding(bool allowOptionals) { }
-        public override bool Equals(object value) { throw null; }
+        public override bool Equals(object? value) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public unsafe override int GetByteCount(char* chars, int count) { throw null; }
         public override int GetByteCount(char[] chars, int index, int count) { throw null; }
@@ -119,21 +125,26 @@ namespace System.Text
         public UTF8Encoding() { }
         public UTF8Encoding(bool encoderShouldEmitUTF8Identifier) { }
         public UTF8Encoding(bool encoderShouldEmitUTF8Identifier, bool throwOnInvalidBytes) { }
-        public override bool Equals(object value) { throw null; }
+        public override System.ReadOnlySpan<byte> Preamble { get { throw null; } }
+        public override bool Equals(object? value) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public unsafe override int GetByteCount(char* chars, int count) { throw null; }
         public override int GetByteCount(char[] chars, int index, int count) { throw null; }
+        public override int GetByteCount(System.ReadOnlySpan<char> chars) { throw null; }
         public override int GetByteCount(string chars) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public unsafe override int GetBytes(char* chars, int charCount, byte* bytes, int byteCount) { throw null; }
         public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; }
+        public override int GetBytes(System.ReadOnlySpan<char> chars, System.Span<byte> bytes) { throw null; }
         public override int GetBytes(string s, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public unsafe override int GetCharCount(byte* bytes, int count) { throw null; }
         public override int GetCharCount(byte[] bytes, int index, int count) { throw null; }
+        public override int GetCharCount(System.ReadOnlySpan<byte> bytes) { throw null; }
         [System.CLSCompliantAttribute(false)]
         public unsafe override int GetChars(byte* bytes, int byteCount, char* chars, int charCount) { throw null; }
         public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex) { throw null; }
+        public override int GetChars(System.ReadOnlySpan<byte> bytes, System.Span<char> chars) { throw null; }
         public override System.Text.Decoder GetDecoder() { throw null; }
         public override System.Text.Encoder GetEncoder() { throw null; }
         public override int GetHashCode() { throw null; }
index 8c62af5ef2621a888bffd09d07e5d17c3ad1a3a4..bc4bf0c6770fb3d4d5b953cf34ede7d69f0321d2 100644 (file)
@@ -3,6 +3,7 @@
     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
     <ProjectGuid>{45ED5323-5E2F-445F-B305-21B3044C87B6}</ProjectGuid>
     <Configurations>netcoreapp-Debug;netcoreapp-Release;uap-Debug;uap-Release</Configurations>
+    <Nullable>enable</Nullable>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="System.Text.Encoding.Extensions.cs" />