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

◆ WriteBase64Text() [1/2]

void System.Xml.XmlSigningNodeWriter.WriteBase64Text ( byte[] buffer,
int offset,
int count )
inlineprivate

Definition at line 388 of file XmlSigningNodeWriter.cs.

389 {
390 if (_base64Chars == null)
391 {
392 _base64Chars = new byte[512];
393 }
394 Base64Encoding base64Encoding = XmlConverter.Base64Encoding;
395 while (count >= 3)
396 {
397 int num = Math.Min(_base64Chars.Length / 4 * 3, count - count % 3);
398 int count2 = num / 3 * 4;
399 base64Encoding.GetChars(buffer, offset, num, _base64Chars, 0);
401 if (_text)
402 {
404 }
405 offset += num;
406 count -= num;
407 }
408 if (count > 0)
409 {
412 if (_text)
413 {
415 }
416 }
417 }
void WriteText(string value)

References System.Xml.XmlSigningNodeWriter._base64Chars, System.Xml.XmlSigningNodeWriter._signingWriter, System.Xml.XmlSigningNodeWriter._text, System.Xml.XmlSigningNodeWriter._writer, System.Xml.XmlConverter.Base64Encoding, System.buffer, System.count, System.Xml.Dictionary, System.Math.Min(), System.offset, System.Xml.XmlCanonicalWriter.WriteText(), and System.Xml.XmlNodeWriter.WriteText().