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

◆ ReadElementContentAsBinaryAsync()

async Task< int > System.Xml.ReadContentAsBinaryHelper.ReadElementContentAsBinaryAsync ( byte[] buffer,
int index,
int count )
inlineprivate

Definition at line 702 of file ReadContentAsBinaryHelper.cs.

703 {
704 if (count == 0)
705 {
706 return 0;
707 }
709 if (num > 0)
710 {
711 return num;
712 }
713 if (_reader.NodeType != XmlNodeType.EndElement)
714 {
715 throw new XmlException(System.SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo);
716 }
718 _state = State.None;
719 return 0;
720 }
static string Xml_InvalidNodeType
Definition SR.cs:88
Definition SR.cs:7
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
async Task< int > ReadContentAsBinaryAsync(byte[] buffer, int index, int count)
virtual Task< bool > ReadAsync()
XmlNodeType NodeType
Definition XmlReader.cs:62

References System.Xml.ReadContentAsBinaryHelper._reader, System.Xml.ReadContentAsBinaryHelper._state, System.buffer, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.count, System.Xml.Dictionary, System.index, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.ReadAsync(), System.Xml.ReadContentAsBinaryHelper.ReadContentAsBinaryAsync(), System.SR.Xml_InvalidNodeType, and System.Xml.XmlException.

Referenced by System.Xml.ReadContentAsBinaryHelper.ReadElementContentAsBase64Async(), and System.Xml.ReadContentAsBinaryHelper.ReadElementContentAsBinHexAsync().