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

◆ Read()

override bool System.Xml.XmlSqlBinaryReader.Read ( )
inline

Definition at line 907 of file XmlSqlBinaryReader.cs.

908 {
909 try
910 {
911 switch (_state)
912 {
913 case ScanState.Init:
914 return ReadInit(skipXmlDecl: false);
915 case ScanState.Doc:
916 return ReadDoc();
917 case ScanState.XmlText:
918 if (_textXmlReader.Read())
919 {
921 }
922 _state = ScanState.Doc;
923 _nodetype = XmlNodeType.None;
924 _isEmpty = false;
925 goto case ScanState.Doc;
926 case ScanState.Attr:
927 case ScanState.AttrVal:
928 case ScanState.AttrValPseudoValue:
930 goto case ScanState.Doc;
931 default:
932 return false;
933 }
934 }
935 catch (OverflowException ex)
936 {
937 _state = ScanState.Error;
938 throw new XmlException(ex.Message, ex);
939 }
940 catch
941 {
942 _state = ScanState.Error;
943 throw;
944 }
945 }

References System.Xml.XmlSqlBinaryReader._isEmpty, System.Xml.XmlSqlBinaryReader._nodetype, System.Xml.XmlSqlBinaryReader._state, System.Xml.XmlSqlBinaryReader._textXmlReader, System.Xml.XmlSqlBinaryReader.MoveToElement(), System.Xml.XmlReader.Read(), System.Xml.XmlSqlBinaryReader.ReadDoc(), System.Xml.XmlSqlBinaryReader.ReadInit(), System.Xml.XmlSqlBinaryReader.UpdateFromTextReader(), and System.Xml.XmlException.

Referenced by System.Xml.XmlSqlBinaryReader.FinishContentAsXXX(), and System.Xml.XmlSqlBinaryReader.SetupContentAsXXX().