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

◆ AddChar() [3/3]

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

Definition at line 76 of file EncodingCharBuffer.cs.

77 {
78 if (_chars >= _charEnd - 1)
79 {
80 _bytes -= numBytes;
82 return false;
83 }
84 if (AddChar(ch1, numBytes))
85 {
86 return AddChar(ch2, numBytes);
87 }
88 return false;
89 }
unsafe readonly byte * _byteStart
unsafe readonly char * _charEnd
readonly System.Text.DecoderNLS _decoder
unsafe bool AddChar(char ch, int numBytes)
void ThrowCharsOverflow(System.Text.DecoderNLS decoder, bool nothingDecoded)

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