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

◆ UnsafeWriteName()

unsafe void System.Xml.XmlBinaryNodeWriter.UnsafeWriteName ( char * chars,
int charCount )
inlineprivate

Definition at line 457 of file XmlBinaryNodeWriter.cs.

458 {
459 if (charCount < 42)
460 {
461 int offset;
462 byte[] buffer = GetBuffer(1 + charCount * 3, out offset);
464 buffer[offset] = (byte)num;
465 Advance(1 + num);
466 }
467 else
468 {
472 }
473 }
unsafe void UnsafeWriteUTF8Chars(char *chars, int charCount)
unsafe int UnsafeGetUTF8Chars(char *chars, int charCount, byte[] buffer, int offset)
unsafe int UnsafeGetUTF8Length(char *chars, int charCount)
byte[] GetBuffer(int count, out int offset)

References System.Xml.XmlStreamNodeWriter.Advance(), System.buffer, System.charCount, System.chars, System.Xml.Dictionary, System.Xml.XmlStreamNodeWriter.GetBuffer(), System.offset, System.Xml.XmlStreamNodeWriter.UnsafeGetUTF8Chars(), System.Xml.XmlStreamNodeWriter.UnsafeGetUTF8Length(), System.Xml.XmlStreamNodeWriter.UnsafeWriteUTF8Chars(), and System.Xml.XmlBinaryNodeWriter.WriteMultiByteInt32().

Referenced by System.Xml.XmlBinaryNodeWriter.WriteName().