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

◆ Write() [1/2]

override void System.Xml.EncodingStreamWrapper.Write ( byte[] buffer,
int offset,
int count )
inline

Definition at line 692 of file EncodingStreamWrapper.cs.

693 {
694 if (_encodingCode == SupportedEncoding.UTF8)
695 {
697 return;
698 }
699 while (count > 0)
700 {
701 int num = ((_chars.Length < count) ? _chars.Length : count);
702 int chars = _dec.GetChars(buffer, offset, num, _chars, 0, flush: false);
705 offset += num;
706 count -= num;
707 }
708 }
void Write(byte[] buffer, int offset, int count)
int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex, bool flush)

References System.Xml.EncodingStreamWrapper._byteCount, System.Xml.EncodingStreamWrapper._bytes, System.Xml.EncodingStreamWrapper._chars, System.Xml.EncodingStreamWrapper._dec, System.Xml.EncodingStreamWrapper._enc, System.Xml.EncodingStreamWrapper._encodingCode, System.Xml.EncodingStreamWrapper._stream, System.buffer, System.chars, System.count, System.Xml.Dictionary, System.Text.Encoder.GetBytes(), System.Text.Decoder.GetChars(), System.offset, and System.IO.Stream.Write().