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

◆ AppendLiteral()

void System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral ( string value)
inline

Definition at line 78 of file DefaultInterpolatedStringHandler.cs.

79 {
80 if (value.Length == 1)
81 {
82 Span<char> chars = _chars;
83 int pos = _pos;
84 if ((uint)pos < (uint)chars.Length)
85 {
86 chars[pos] = value[0];
87 _pos = pos + 1;
88 }
89 else
90 {
92 }
93 }
94 else if (value.Length == 2)
95 {
96 Span<char> chars2 = _chars;
97 int pos2 = _pos;
98 if ((uint)pos2 < chars2.Length - 1)
99 {
100 Unsafe.WriteUnaligned(ref Unsafe.As<char, byte>(ref Unsafe.Add(ref MemoryMarshal.GetReference(chars2), pos2)), Unsafe.ReadUnaligned<int>(ref Unsafe.As<char, byte>(ref value.GetRawStringData())));
101 _pos = pos2 + 2;
102 }
103 else
104 {
106 }
107 }
108 else
109 {
111 }
112 }

References System.Runtime.CompilerServices.DefaultInterpolatedStringHandler._chars, System.Runtime.CompilerServices.DefaultInterpolatedStringHandler._pos, System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendStringDirect(), System.chars, System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.GrowThenCopyString(), System.Span< T >.Length, and System.value.

Referenced by System.Net.Http.Http3Connection.Http3Connection(), System.Net.WebProxy.WebProxy(), System.Xml.CharEntityEncoderFallbackBuffer.Fallback(), System.Xml.CharEntityEncoderFallbackBuffer.Fallback(), System.Xml.Xsl.Runtime.XmlQueryRuntime.GenerateId(), System.Xml.Serialization.XmlSerializationWriterILGen.GenerateMembersElement(), System.Xml.XmlWellFormedWriter.GeneratePrefix(), System.Xml.XmlBaseWriter.GeneratePrefix(), System.Diagnostics.FileVersionInfo.GetVersionInfoForCodePage(), System.Net.WebProxy.IsMatchInBypassList(), System.Xml.Serialization.XmlSerializationReaderCodeGen.NextIdName(), System.Xml.Serialization.XmlSerializationReaderILGen.NextIdName(), System.Xml.Serialization.XmlSerializationReaderCodeGen.NextMethodName(), System.Xml.Serialization.XmlSerializationReaderILGen.NextMethodName(), System.Runtime.Serialization.XmlObjectSerializerWriteContext.OnHandleIsReference(), System.Collections.Generic.KeyValuePair< TKey, TValue >.PairToString(), System.Net.Http.AuthenticationHelper.SendWithNtAuthAsync(), System.Linq.Expressions.Interpreter.LoadCachedObjectInstruction.ToDebugString(), System.Linq.Expressions.Interpreter.DebugInfo.ToString(), System.Linq.Expressions.Interpreter.ExceptionHandler.ToString(), System.Linq.Expressions.Interpreter.LocalVariable.ToString(), System.Linq.Expressions.Interpreter.RuntimeLabel.ToString(), System.Net.Http.Headers.RangeItemHeaderValue.ToString(), System.Net.Http.Headers.StringWithQualityHeaderValue.ToString(), System.Net.CredentialHostKey.ToString(), System.Net.CredentialKey.ToString(), System.Diagnostics.TraceListener.TraceTransfer(), System.Runtime.Serialization.XmlObjectSerializer.TryAddLineInfo(), System.Xml.Serialization.XmlSerializationReaderCodeGen.WriteAddCollectionFixup(), System.Diagnostics.TraceListener.WriteFooter(), System.Xml.Serialization.XmlSerializationReaderCodeGen.WriteHashtable(), System.Diagnostics.TraceListener.WriteHeader(), and System.Runtime.Serialization.XmlWriterDelegator.WriteXmlnsAttribute().