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

◆ AddChar() [2/3]

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

Definition at line 55 of file EncodingCharBuffer.cs.

56 {
57 if (_chars != null)
58 {
59 if (_chars >= _charEnd)
60 {
61 _bytes -= numBytes;
63 return false;
64 }
65 *(_chars++) = ch;
66 }
68 return true;
69 }
unsafe readonly byte * _byteStart
unsafe readonly char * _charEnd
readonly System.Text.DecoderNLS _decoder
void ThrowCharsOverflow(System.Text.DecoderNLS decoder, bool nothingDecoded)

References System.Text.EncodingCharBuffer._bytes, System.Text.EncodingCharBuffer._byteStart, System.Text.EncodingCharBuffer._charCountResult, System.Text.EncodingCharBuffer._charEnd, System.Text.EncodingCharBuffer._chars, System.Text.EncodingCharBuffer._decoder, System.Text.EncodingCharBuffer._enc, System.ch, and System.Text.EncodingNLS.ThrowCharsOverflow().

Referenced by System.Text.EncodingCharBuffer.AddChar(), and System.Text.EncodingCharBuffer.AddChar().