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

◆ FinishReadContentAsBinaryAsync()

async Task< bool > System.Xml.XmlSubtreeReader.FinishReadContentAsBinaryAsync ( )
inlineprivate

Definition at line 1881 of file XmlSubtreeReader.cs.

1882 {
1883 byte[] bytes = new byte[256];
1884 if (_state == State.ReadContentAsBase64)
1885 {
1886 while (await reader.ReadContentAsBase64Async(bytes, 0, 256).ConfigureAwait(continueOnCapturedContext: false) > 0)
1887 {
1888 }
1889 }
1890 else
1891 {
1892 while (await reader.ReadContentAsBinHexAsync(bytes, 0, 256).ConfigureAwait(continueOnCapturedContext: false) > 0)
1893 {
1894 }
1895 }
1896 _state = State.Interactive;
1898 if (reader.Depth == _initialDepth)
1899 {
1900 _state = State.EndOfFile;
1901 SetEmptyNode();
1902 return false;
1903 }
1904 return true;
1905 }
virtual Task< int > ReadContentAsBinHexAsync(byte[] buffer, int index, int count)
virtual Task< int > ReadContentAsBase64Async(byte[] buffer, int index, int count)

References System.Xml.XmlSubtreeReader._initialDepth, System.Xml.XmlSubtreeReader._state, System.bytes, System.Xml.XmlReader.Depth, System.Xml.XmlSubtreeReader.ProcessNamespaces(), System.Xml.XmlReader.ReadContentAsBase64Async(), System.Xml.XmlReader.ReadContentAsBinHexAsync(), System.Xml.XmlWrappingReader.reader, and System.Xml.XmlSubtreeReader.SetEmptyNode().

Referenced by System.Xml.XmlSubtreeReader.ReadAsync(), and System.Xml.XmlSubtreeReader.SkipAsync().