terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ ReadAsBytes()

override byte[] Newtonsoft.Json.JsonTextReader.ReadAsBytes ( )
inlinevirtual

Reimplemented from Newtonsoft.Json.JsonReader.

Definition at line 208 of file JsonTextReader.cs.

209 {
210 if (this._chars == null)
211 {
212 IArrayPool<char> arrayPool = this._arrayPool;
213 int num = 1024;
214 char[] array = BufferUtils.RentBuffer(arrayPool, num);
216 }
217 JsonReader.State currentState = this._currentState;
218 this._charPos = (int)currentState;
219 if (currentState == JsonReader.State.Start)
220 {
221 }
222 this._charPos = (int)currentState;
223 long num2 = 0L;
224 this.ProcessCarriageReturn(num2 != 0L);
225 this._charPos = (int)currentState;
226 base.ReadIntoWrappedTypeObject();
227 long num3 = 0L;
228 this.ParseComment(num3 != 0L);
229 this.ProcessValueComma();
230 bool flag = this.ReadNullChar();
231 int lineNumber = this._lineNumber;
232 this._charPos = (int)currentState;
233 this._lineStartPos = (int)currentState;
234 this._isEndOfFile = lineNumber != 0;
235 char[] chars = this._chars;
236 if (this != null)
237 {
238 if (this != null)
239 {
240 return base.ReadArrayIntoByteArray();
241 }
242 }
243 else
244 {
245 long num4 = 0L;
246 base.ReaderReadAndAssert();
247 JsonPosition currentPosition = this._currentPosition;
248 int num5 = 17;
251 long num6;
252 if (currentPosition != null)
253 {
254 num6 = 0L;
255 }
256 bool <SupportMultipleContent>k__BackingField = this.<SupportMultipleContent>k__BackingField;
257 int num7 = 12;
258 this._currentState = (JsonReader.State)num7;
259 JsonReaderException ex = this.CreateUnexpectedCharacterException((char)num6);
261 }
262 throw new InvalidCastException();
263 }
class f__AnonymousType0<< Count > j__TPar
JsonReader.State _currentState
bool< CloseInput > k__BackingField
JsonPosition _currentPosition
JsonReaderException CreateUnexpectedCharacterException(char c)
void ProcessCarriageReturn(bool append)
void ParseComment(bool setToken)
static char[] RentBuffer(IArrayPool< char > bufferPool, int minSize)
static CultureInfo InvariantCulture

References Newtonsoft.Json.JsonTextReader._arrayPool, Newtonsoft.Json.JsonTextReader._chars, Newtonsoft.Json.JsonReader._currentPosition, Newtonsoft.Json.JsonReader._currentState, Newtonsoft.Json.JsonTextReader._lineNumber, System.array, Newtonsoft.Json.JsonTextReader.CreateUnexpectedCharacterException(), System.Globalization.CultureInfo.InvariantCulture, j__TPar, Newtonsoft.Json.JsonReader.k__BackingField, System.L, Newtonsoft.Json.JsonTextReader.ParseComment(), Newtonsoft.Json.JsonTextReader.ProcessCarriageReturn(), Newtonsoft.Json.JsonTextReader.ProcessValueComma(), Newtonsoft.Json.JsonTextReader.ReadNullChar(), Newtonsoft.Json.Utilities.BufferUtils.RentBuffer(), and Newtonsoft.Json.JsonReader.SupportMultipleContent.