1 // Licensed to the .NET Foundation under one or more agreements. 2 // The .NET Foundation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 // ------------------------------------------------------------------------------ 5 // Changes to this file must follow the http://aka.ms/api-review process. 6 // ------------------------------------------------------------------------------ 7 8 9 namespace System.Text 10 { 11 public partial class ASCIIEncoding : System.Text.Encoding 12 { ASCIIEncoding()13 public ASCIIEncoding() { } 14 public override bool IsSingleByte { get { throw null; } } 15 [System.CLSCompliantAttribute(false)] GetByteCount(char* chars, int count)16 public unsafe override int GetByteCount(char* chars, int count) { throw null; } GetByteCount(char[] chars, int index, int count)17 public override int GetByteCount(char[] chars, int index, int count) { throw null; } GetByteCount(string chars)18 public override int GetByteCount(string chars) { throw null; } 19 [System.CLSCompliantAttribute(false)] GetBytes(char* chars, int charCount, byte* bytes, int byteCount)20 public unsafe override int GetBytes(char* chars, int charCount, byte* bytes, int byteCount) { throw null; } GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)21 public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; } GetBytes(string chars, int charIndex, int charCount, byte[] bytes, int byteIndex)22 public override int GetBytes(string chars, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; } 23 [System.CLSCompliantAttribute(false)] GetCharCount(byte* bytes, int count)24 public unsafe override int GetCharCount(byte* bytes, int count) { throw null; } GetCharCount(byte[] bytes, int index, int count)25 public override int GetCharCount(byte[] bytes, int index, int count) { throw null; } 26 [System.CLSCompliantAttribute(false)] GetChars(byte* bytes, int byteCount, char* chars, int charCount)27 public unsafe override int GetChars(byte* bytes, int byteCount, char* chars, int charCount) { throw null; } GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)28 public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex) { throw null; } GetDecoder()29 public override System.Text.Decoder GetDecoder() { throw null; } GetEncoder()30 public override System.Text.Encoder GetEncoder() { throw null; } GetMaxByteCount(int charCount)31 public override int GetMaxByteCount(int charCount) { throw null; } GetMaxCharCount(int byteCount)32 public override int GetMaxCharCount(int byteCount) { throw null; } GetString(byte[] bytes, int byteIndex, int byteCount)33 public override string GetString(byte[] bytes, int byteIndex, int byteCount) { throw null; } 34 } 35 public partial class UnicodeEncoding : System.Text.Encoding 36 { 37 public const int CharSize = 2; UnicodeEncoding()38 public UnicodeEncoding() { } UnicodeEncoding(bool bigEndian, bool byteOrderMark)39 public UnicodeEncoding(bool bigEndian, bool byteOrderMark) { } UnicodeEncoding(bool bigEndian, bool byteOrderMark, bool throwOnInvalidBytes)40 public UnicodeEncoding(bool bigEndian, bool byteOrderMark, bool throwOnInvalidBytes) { } Equals(object value)41 public override bool Equals(object value) { throw null; } GetByteCount(char[] chars, int index, int count)42 public override int GetByteCount(char[] chars, int index, int count) { throw null; } 43 [System.CLSCompliantAttribute(false)] GetByteCount(char* chars, int count)44 public unsafe override int GetByteCount(char* chars, int count) { throw null; } GetByteCount(string s)45 public override int GetByteCount(string s) { throw null; } 46 [System.CLSCompliantAttribute(false)] GetBytes(char* chars, int charCount, byte* bytes, int byteCount)47 public unsafe override int GetBytes(char* chars, int charCount, byte* bytes, int byteCount) { throw null; } GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)48 public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; } GetBytes(string s, int charIndex, int charCount, byte[] bytes, int byteIndex)49 public override int GetBytes(string s, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; } 50 [System.CLSCompliantAttribute(false)] GetCharCount(byte* bytes, int count)51 public unsafe override int GetCharCount(byte* bytes, int count) { throw null; } GetCharCount(byte[] bytes, int index, int count)52 public override int GetCharCount(byte[] bytes, int index, int count) { throw null; } 53 [System.CLSCompliantAttribute(false)] GetChars(byte* bytes, int byteCount, char* chars, int charCount)54 public unsafe override int GetChars(byte* bytes, int byteCount, char* chars, int charCount) { throw null; } GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)55 public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex) { throw null; } GetDecoder()56 public override System.Text.Decoder GetDecoder() { throw null; } GetEncoder()57 public override System.Text.Encoder GetEncoder() { throw null; } GetHashCode()58 public override int GetHashCode() { throw null; } GetMaxByteCount(int charCount)59 public override int GetMaxByteCount(int charCount) { throw null; } GetMaxCharCount(int byteCount)60 public override int GetMaxCharCount(int byteCount) { throw null; } GetPreamble()61 public override byte[] GetPreamble() { throw null; } GetString(byte[] bytes, int index, int count)62 public override string GetString(byte[] bytes, int index, int count) { throw null; } 63 } 64 public sealed partial class UTF32Encoding : System.Text.Encoding 65 { UTF32Encoding()66 public UTF32Encoding() { } UTF32Encoding(bool bigEndian, bool byteOrderMark)67 public UTF32Encoding(bool bigEndian, bool byteOrderMark) { } UTF32Encoding(bool bigEndian, bool byteOrderMark, bool throwOnInvalidCharacters)68 public UTF32Encoding(bool bigEndian, bool byteOrderMark, bool throwOnInvalidCharacters) { } Equals(object value)69 public override bool Equals(object value) { throw null; } 70 [System.CLSCompliantAttribute(false)] GetByteCount(char* chars, int count)71 public unsafe override int GetByteCount(char* chars, int count) { throw null; } GetByteCount(char[] chars, int index, int count)72 public override int GetByteCount(char[] chars, int index, int count) { throw null; } GetByteCount(string s)73 public override int GetByteCount(string s) { throw null; } 74 [System.CLSCompliantAttribute(false)] GetBytes(char* chars, int charCount, byte* bytes, int byteCount)75 public unsafe override int GetBytes(char* chars, int charCount, byte* bytes, int byteCount) { throw null; } GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)76 public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; } GetBytes(string s, int charIndex, int charCount, byte[] bytes, int byteIndex)77 public override int GetBytes(string s, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; } 78 [System.CLSCompliantAttribute(false)] GetCharCount(byte* bytes, int count)79 public unsafe override int GetCharCount(byte* bytes, int count) { throw null; } GetCharCount(byte[] bytes, int index, int count)80 public override int GetCharCount(byte[] bytes, int index, int count) { throw null; } 81 [System.CLSCompliantAttribute(false)] GetChars(byte* bytes, int byteCount, char* chars, int charCount)82 public unsafe override int GetChars(byte* bytes, int byteCount, char* chars, int charCount) { throw null; } GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)83 public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex) { throw null; } GetDecoder()84 public override System.Text.Decoder GetDecoder() { throw null; } GetEncoder()85 public override System.Text.Encoder GetEncoder() { throw null; } GetHashCode()86 public override int GetHashCode() { throw null; } GetMaxByteCount(int charCount)87 public override int GetMaxByteCount(int charCount) { throw null; } GetMaxCharCount(int byteCount)88 public override int GetMaxCharCount(int byteCount) { throw null; } GetPreamble()89 public override byte[] GetPreamble() { throw null; } GetString(byte[] bytes, int index, int count)90 public override string GetString(byte[] bytes, int index, int count) { throw null; } 91 } 92 public partial class UTF7Encoding : System.Text.Encoding 93 { UTF7Encoding()94 public UTF7Encoding() { } UTF7Encoding(bool allowOptionals)95 public UTF7Encoding(bool allowOptionals) { } Equals(object value)96 public override bool Equals(object value) { throw null; } 97 [System.CLSCompliantAttribute(false)] GetByteCount(char* chars, int count)98 public unsafe override int GetByteCount(char* chars, int count) { throw null; } GetByteCount(char[] chars, int index, int count)99 public override int GetByteCount(char[] chars, int index, int count) { throw null; } GetByteCount(string s)100 public override int GetByteCount(string s) { throw null; } 101 [System.CLSCompliantAttribute(false)] GetBytes(char* chars, int charCount, byte* bytes, int byteCount)102 public unsafe override int GetBytes(char* chars, int charCount, byte* bytes, int byteCount) { throw null; } GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)103 public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; } GetBytes(string s, int charIndex, int charCount, byte[] bytes, int byteIndex)104 public override int GetBytes(string s, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; } 105 [System.CLSCompliantAttribute(false)] GetCharCount(byte* bytes, int count)106 public unsafe override int GetCharCount(byte* bytes, int count) { throw null; } GetCharCount(byte[] bytes, int index, int count)107 public override int GetCharCount(byte[] bytes, int index, int count) { throw null; } 108 [System.CLSCompliantAttribute(false)] GetChars(byte* bytes, int byteCount, char* chars, int charCount)109 public unsafe override int GetChars(byte* bytes, int byteCount, char* chars, int charCount) { throw null; } GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)110 public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex) { throw null; } GetDecoder()111 public override System.Text.Decoder GetDecoder() { throw null; } GetEncoder()112 public override System.Text.Encoder GetEncoder() { throw null; } GetHashCode()113 public override int GetHashCode() { throw null; } GetMaxByteCount(int charCount)114 public override int GetMaxByteCount(int charCount) { throw null; } GetMaxCharCount(int byteCount)115 public override int GetMaxCharCount(int byteCount) { throw null; } GetString(byte[] bytes, int index, int count)116 public override string GetString(byte[] bytes, int index, int count) { throw null; } 117 } 118 public partial class UTF8Encoding : System.Text.Encoding 119 { UTF8Encoding()120 public UTF8Encoding() { } UTF8Encoding(bool encoderShouldEmitUTF8Identifier)121 public UTF8Encoding(bool encoderShouldEmitUTF8Identifier) { } UTF8Encoding(bool encoderShouldEmitUTF8Identifier, bool throwOnInvalidBytes)122 public UTF8Encoding(bool encoderShouldEmitUTF8Identifier, bool throwOnInvalidBytes) { } Equals(object value)123 public override bool Equals(object value) { throw null; } 124 [System.CLSCompliantAttribute(false)] GetByteCount(char* chars, int count)125 public unsafe override int GetByteCount(char* chars, int count) { throw null; } GetByteCount(char[] chars, int index, int count)126 public override int GetByteCount(char[] chars, int index, int count) { throw null; } GetByteCount(string chars)127 public override int GetByteCount(string chars) { throw null; } 128 [System.CLSCompliantAttribute(false)] GetBytes(char* chars, int charCount, byte* bytes, int byteCount)129 public unsafe override int GetBytes(char* chars, int charCount, byte* bytes, int byteCount) { throw null; } GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)130 public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; } GetBytes(string s, int charIndex, int charCount, byte[] bytes, int byteIndex)131 public override int GetBytes(string s, int charIndex, int charCount, byte[] bytes, int byteIndex) { throw null; } 132 [System.CLSCompliantAttribute(false)] GetCharCount(byte* bytes, int count)133 public unsafe override int GetCharCount(byte* bytes, int count) { throw null; } GetCharCount(byte[] bytes, int index, int count)134 public override int GetCharCount(byte[] bytes, int index, int count) { throw null; } 135 [System.CLSCompliantAttribute(false)] GetChars(byte* bytes, int byteCount, char* chars, int charCount)136 public unsafe override int GetChars(byte* bytes, int byteCount, char* chars, int charCount) { throw null; } GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)137 public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex) { throw null; } GetDecoder()138 public override System.Text.Decoder GetDecoder() { throw null; } GetEncoder()139 public override System.Text.Encoder GetEncoder() { throw null; } GetHashCode()140 public override int GetHashCode() { throw null; } GetMaxByteCount(int charCount)141 public override int GetMaxByteCount(int charCount) { throw null; } GetMaxCharCount(int byteCount)142 public override int GetMaxCharCount(int byteCount) { throw null; } GetPreamble()143 public override byte[] GetPreamble() { throw null; } GetString(byte[] bytes, int index, int count)144 public override string GetString(byte[] bytes, int index, int count) { throw null; } 145 } 146 } 147