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

◆ Append() [20/26]

StringBuilder System.Text.StringBuilder.Append ( string? value)
inline

Definition at line 811 of file StringBuilder.cs.

812 {
813 if (value != null)
814 {
815 char[] chunkChars = m_ChunkChars;
817 int length = value.Length;
818 if ((uint)(chunkLength + length) < (uint)chunkChars.Length)
819 {
820 if (length <= 2)
821 {
822 if (length > 0)
823 {
825 }
826 if (length > 1)
827 {
828 chunkChars[chunkLength + 1] = value[1];
829 }
830 }
831 else
832 {
833 Buffer.Memmove(ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(chunkChars), chunkLength), ref value.GetRawStringData(), (nuint)length);
834 }
836 }
837 else
838 {
840 }
841 }
842 return this;
843 }
static unsafe ref byte GetArrayDataReference(Array array)
unsafe void AppendHelper(string value)

References System.Text.StringBuilder.AppendHelper(), System.Runtime.Serialization.Dictionary, System.Runtime.InteropServices.MemoryMarshal.GetArrayDataReference(), System.length, System.Text.StringBuilder.m_ChunkChars, System.Text.StringBuilder.m_ChunkLength, System.Buffer.Memmove(), and System.value.