Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AddChar() [2/2]

unsafe bool System.Text.Encoding.EncodingCharBuffer.AddChar ( char ch,
int numBytes )
inlinepackage

Definition at line 145 of file Encoding.cs.

146 {
147 if (_chars != null)
148 {
149 if (_chars >= _charEnd)
150 {
151 _bytes -= numBytes;
153 return false;
154 }
155 *(_chars++) = ch;
156 }
158 return true;
159 }
unsafe readonly char * _charEnd
Definition Encoding.cs:102
unsafe readonly byte * _byteStart
Definition Encoding.cs:110

References System.Text.Encoding.EncodingCharBuffer._bytes, System.Text.Encoding.EncodingCharBuffer._byteStart, System.Text.Encoding.EncodingCharBuffer._charCountResult, System.Text.Encoding.EncodingCharBuffer._charEnd, System.Text.Encoding.EncodingCharBuffer._chars, System.Text.Encoding.EncodingCharBuffer._decoder, System.Text.Encoding.EncodingCharBuffer._enc, System.ch, System.Runtime.Serialization.Dictionary, and System.Text.Encoding.ThrowCharsOverflow().

Referenced by System.Text.Encoding.EncodingCharBuffer.AddChar(), System.Text.UTF7Encoding.GetChars(), System.Text.GB18030Encoding.GetChars(), System.Text.ISO2022Encoding.GetCharsCP50225KR(), System.Text.ISO2022Encoding.GetCharsCP5022xJP(), and System.Text.ISO2022Encoding.GetCharsCP52936().