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

◆ ReadAsBoolean()

override? bool Newtonsoft.Json.JsonTextReader.ReadAsBoolean ( )
inlinevirtual

Reimplemented from Newtonsoft.Json.JsonReader.

Definition at line 309 of file JsonTextReader.cs.

310 {
311 if (this._chars == null)
312 {
313 IArrayPool<char> arrayPool = this._arrayPool;
314 int num = 1024;
315 char[] array = BufferUtils.RentBuffer(arrayPool, num);
317 }
318 JsonReader.State currentState = this._currentState;
319 this._charPos = (int)currentState;
320 this._charPos = (int)currentState;
321 if (currentState == JsonReader.State.Start)
322 {
323 }
324 char[] chars = this._chars;
325 bool flag = this.ReadNullChar();
326 this.ProcessValueComma();
327 long num2 = 0L;
328 this.ProcessCarriageReturn(num2 != 0L);
329 int lineNumber = this._lineNumber;
330 this._charPos = (int)currentState;
331 this._lineStartPos = (int)currentState;
332 this._isEndOfFile = lineNumber != 0;
333 long num3 = 0L;
334 this.ParseComment(num3 != 0L);
335 if (lineNumber == 0)
336 {
337 }
339 if (lineNumber == 0)
340 {
341 }
343 JsonPosition currentPosition = this._currentPosition;
344 int num4 = 10;
346 if (currentPosition != null)
347 {
348 }
349 bool <SupportMultipleContent>k__BackingField = this.<SupportMultipleContent>k__BackingField;
350 int num5 = 12;
351 this._currentState = (JsonReader.State)num5;
352 this.HandleNull();
355 if (num5 == 0)
356 {
357 }
358 string text;
360 }
class f__AnonymousType0<< Count > j__TPar
JsonReader.State _currentState
bool< CloseInput > k__BackingField
bool? ReadBooleanString(string s)
JsonPosition _currentPosition
void ProcessCarriageReturn(bool append)
void ParseComment(bool setToken)
static char[] RentBuffer(IArrayPool< char > bufferPool, int minSize)
static bool ToBoolean(object value, IFormatProvider provider)
Definition Convert.cs:214
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.HandleNull(), 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.JsonReader.ReadBooleanString(), Newtonsoft.Json.JsonTextReader.ReadNullChar(), Newtonsoft.Json.Utilities.BufferUtils.RentBuffer(), Newtonsoft.Json.JsonReader.SupportMultipleContent, System.text, and System.Convert.ToBoolean().