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

◆ WriteBase64Async()

override Task System.Xml.XmlWellFormedWriter.WriteBase64Async ( byte[] buffer,
int index,
int count )
inlinevirtual

Reimplemented from System.Xml.XmlWriter.

Definition at line 4053 of file XmlWellFormedWriter.cs.

4054 {
4055 try
4056 {
4057 if (buffer == null)
4058 {
4059 throw new ArgumentNullException("buffer");
4060 }
4061 if (index < 0)
4062 {
4063 throw new ArgumentOutOfRangeException("index");
4064 }
4065 if (count < 0)
4066 {
4067 throw new ArgumentOutOfRangeException("count");
4068 }
4069 if (count > buffer.Length - index)
4070 {
4071 throw new ArgumentOutOfRangeException("count");
4072 }
4073 Task task = AdvanceStateAsync(Token.Base64);
4074 if (task.IsSuccess())
4075 {
4077 }
4079 }
4080 catch
4081 {
4082 _currentState = State.Error;
4083 throw;
4084 }
4085 }
async Task WriteBase64Async_NoAdvanceState(Task task, byte[] buffer, int index, int count)
virtual Task WriteBase64Async(byte[] buffer, int index, int count)
Definition XmlWriter.cs:693

References System.Xml.XmlWellFormedWriter._currentState, System.Xml.XmlWellFormedWriter._writer, System.Xml.XmlWellFormedWriter.AdvanceStateAsync(), System.buffer, System.count, System.index, System.task, System.Xml.XmlWellFormedWriter.TryReturnTask(), System.Xml.XmlWriter.WriteBase64Async(), and System.Xml.XmlWellFormedWriter.WriteBase64Async_NoAdvanceState().