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

◆ GetString()

string System.Xml.XmlSqlBinaryReader.GetString ( int pos,
int cch )
inlineprivate

Definition at line 2182 of file XmlSqlBinaryReader.cs.

2183 {
2184 checked
2185 {
2186 if (pos + cch * 2 > _end)
2187 {
2188 throw new XmlException(System.SR.Xml_UnexpectedEOF1, (string[])null);
2189 }
2190 if (cch == 0)
2191 {
2192 return string.Empty;
2193 }
2194 return string.Create(cch, (_data, pos), delegate(Span<char> dstChars, (byte[] _data, int pos) state)
2195 {
2196 int length = dstChars.Length;
2197 ReadOnlySpan<byte> readOnlySpan = state._data.AsSpan(state.pos, length * 2);
2200 });
2201 }
2202 }
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
static string Xml_UnexpectedEOF1
Definition SR.cs:38
Definition SR.cs:7

References System.Xml.XmlSqlBinaryReader._data, System.Xml.XmlSqlBinaryReader._end, System.Collections.Generic.Dictionary< TKey, TValue >.CopyTo(), System.destination, System.Xml.Dictionary, System.length, System.state, System.SR.Xml_UnexpectedEOF1, and System.Xml.XmlException.

Referenced by System.Xml.XmlSqlBinaryReader.CDATAValue(), System.Xml.XmlSqlBinaryReader.ParseText(), System.Xml.XmlSqlBinaryReader.ValueAs(), System.Xml.XmlSqlBinaryReader.ValueAsObject(), and System.Xml.XmlSqlBinaryReader.ValueAsString().