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

◆ SetValue() [1/3]

void System.Xml.PrefixHandle.SetValue ( int offset,
int length )
inline

Definition at line 92 of file PrefixHandle.cs.

93 {
94 switch (length)
95 {
96 case 0:
97 SetValue(PrefixHandleType.Empty);
98 return;
99 case 1:
100 {
101 byte @byte = _bufferReader.GetByte(offset);
102 if (@byte >= 97 && @byte <= 122)
103 {
104 SetValue(GetAlphaPrefix(@byte - 97));
105 return;
106 }
107 break;
108 }
109 }
110 _type = PrefixHandleType.Buffer;
111 _offset = offset;
112 _length = length;
113 }
void SetValue(PrefixHandleType type)
static PrefixHandleType GetAlphaPrefix(int index)
readonly XmlBufferReader _bufferReader
PrefixHandleType _type

References System.Xml.PrefixHandle._bufferReader, System.Xml.PrefixHandle._length, System.Xml.PrefixHandle._offset, System.Xml.PrefixHandle._type, System.Xml.PrefixHandle.GetAlphaPrefix(), System.Xml.XmlBufferReader.GetByte(), System.length, System.offset, and System.Xml.PrefixHandle.SetValue().