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

◆ WriteCharsAsync()

override async Task System.Xml.XmlWellFormedWriter.WriteCharsAsync ( char[] buffer,
int index,
int count )
inlinevirtual

Reimplemented from System.Xml.XmlWriter.

Definition at line 3952 of file XmlWellFormedWriter.cs.

3953 {
3954 _ = 1;
3955 try
3956 {
3957 if (buffer == null)
3958 {
3959 throw new ArgumentNullException("buffer");
3960 }
3961 if (index < 0)
3962 {
3963 throw new ArgumentOutOfRangeException("index");
3964 }
3965 if (count < 0)
3966 {
3967 throw new ArgumentOutOfRangeException("count");
3968 }
3969 if (count > buffer.Length - index)
3970 {
3971 throw new ArgumentOutOfRangeException("count");
3972 }
3974 if (SaveAttrValue)
3975 {
3977 }
3978 else
3979 {
3981 }
3982 }
3983 catch
3984 {
3985 _currentState = State.Error;
3986 throw;
3987 }
3988 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
void WriteChars(char[] buffer, int index, int count)
virtual Task WriteCharsAsync(char[] buffer, int index, int count)
Definition XmlWriter.cs:678

References System.Xml.XmlWellFormedWriter._attrValueCache, System.Xml.XmlWellFormedWriter._currentState, System.Xml.XmlWellFormedWriter._writer, System.Xml.XmlWellFormedWriter.AdvanceStateAsync(), System.buffer, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.count, System.index, System.Xml.XmlWellFormedWriter.SaveAttrValue, System.Xml.XmlWellFormedWriter.AttributeValueCache.WriteChars(), and System.Xml.XmlWriter.WriteCharsAsync().