System\Text\Json\Reader\Utf8JsonReader.cs (40)
1433ConsumeNumberResult signResult = ConsumeNegativeSign(ref data, ref i);
1434if (signResult == ConsumeNumberResult.NeedMoreData)
1439Debug.Assert(signResult == ConsumeNumberResult.OperationIncomplete);
1446ConsumeNumberResult result = ConsumeZero(ref data, ref i);
1447if (result == ConsumeNumberResult.NeedMoreData)
1451if (result == ConsumeNumberResult.Success)
1456Debug.Assert(result == ConsumeNumberResult.OperationIncomplete);
1462ConsumeNumberResult result = ConsumeIntegerDigits(ref data, ref i);
1463if (result == ConsumeNumberResult.NeedMoreData)
1467if (result == ConsumeNumberResult.Success)
1472Debug.Assert(result == ConsumeNumberResult.OperationIncomplete);
1486ConsumeNumberResult result = ConsumeDecimalDigits(ref data, ref i);
1487if (result == ConsumeNumberResult.NeedMoreData)
1491if (result == ConsumeNumberResult.Success)
1496Debug.Assert(result == ConsumeNumberResult.OperationIncomplete);
1509if (signResult == ConsumeNumberResult.NeedMoreData)
1514Debug.Assert(signResult == ConsumeNumberResult.OperationIncomplete);
1517ConsumeNumberResult resultExponent = ConsumeIntegerDigits(ref data, ref i);
1518if (resultExponent == ConsumeNumberResult.NeedMoreData)
1522if (resultExponent == ConsumeNumberResult.Success)
1527Debug.Assert(resultExponent == ConsumeNumberResult.OperationIncomplete);
1538private ConsumeNumberResult ConsumeNegativeSign(ref ReadOnlySpan<byte> data, scoped ref int i)
1552return ConsumeNumberResult.NeedMoreData;
1562return ConsumeNumberResult.OperationIncomplete;
1565private ConsumeNumberResult ConsumeZero(ref ReadOnlySpan<byte> data, scoped ref int i)
1575return ConsumeNumberResult.Success;
1585return ConsumeNumberResult.Success;
1589return ConsumeNumberResult.NeedMoreData;
1601return ConsumeNumberResult.OperationIncomplete;
1604private ConsumeNumberResult ConsumeIntegerDigits(ref ReadOnlySpan<byte> data, scoped ref int i)
1622return ConsumeNumberResult.Success;
1626return ConsumeNumberResult.NeedMoreData;
1631return ConsumeNumberResult.Success;
1634return ConsumeNumberResult.OperationIncomplete;
1637private ConsumeNumberResult ConsumeDecimalDigits(ref ReadOnlySpan<byte> data, scoped ref int i)
1646return ConsumeNumberResult.NeedMoreData;
1659private ConsumeNumberResult ConsumeSign(ref ReadOnlySpan<byte> data, scoped ref int i)
1668return ConsumeNumberResult.NeedMoreData;
1682return ConsumeNumberResult.NeedMoreData;
1693return ConsumeNumberResult.OperationIncomplete;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (44)
1127ConsumeNumberResult signResult = ConsumeNegativeSignMultiSegment(ref data, ref i, rollBackState);
1128if (signResult == ConsumeNumberResult.NeedMoreData)
1134Debug.Assert(signResult == ConsumeNumberResult.OperationIncomplete);
1141ConsumeNumberResult result = ConsumeZeroMultiSegment(ref data, ref i, rollBackState);
1142if (result == ConsumeNumberResult.NeedMoreData)
1147if (result == ConsumeNumberResult.Success)
1152Debug.Assert(result == ConsumeNumberResult.OperationIncomplete);
1157ConsumeNumberResult result = ConsumeIntegerDigitsMultiSegment(ref data, ref i);
1158if (result == ConsumeNumberResult.NeedMoreData)
1163if (result == ConsumeNumberResult.Success)
1168Debug.Assert(result == ConsumeNumberResult.OperationIncomplete);
1183ConsumeNumberResult result = ConsumeDecimalDigitsMultiSegment(ref data, ref i, rollBackState);
1184if (result == ConsumeNumberResult.NeedMoreData)
1189if (result == ConsumeNumberResult.Success)
1194Debug.Assert(result == ConsumeNumberResult.OperationIncomplete);
1208if (signResult == ConsumeNumberResult.NeedMoreData)
1214Debug.Assert(signResult == ConsumeNumberResult.OperationIncomplete);
1218ConsumeNumberResult resultExponent = ConsumeIntegerDigitsMultiSegment(ref data, ref i);
1219if (resultExponent == ConsumeNumberResult.NeedMoreData)
1224if (resultExponent == ConsumeNumberResult.Success)
1229Debug.Assert(resultExponent == ConsumeNumberResult.OperationIncomplete);
1250private ConsumeNumberResult ConsumeNegativeSignMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState)
1273return ConsumeNumberResult.NeedMoreData;
1289return ConsumeNumberResult.OperationIncomplete;
1292private ConsumeNumberResult ConsumeZeroMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState)
1304return ConsumeNumberResult.Success;
1314return ConsumeNumberResult.Success;
1321return ConsumeNumberResult.Success;
1323return ConsumeNumberResult.NeedMoreData;
1333return ConsumeNumberResult.Success;
1345return ConsumeNumberResult.OperationIncomplete;
1348private ConsumeNumberResult ConsumeIntegerDigitsMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i)
1369return ConsumeNumberResult.Success;
1379return ConsumeNumberResult.Success;
1381return ConsumeNumberResult.NeedMoreData;
1403return ConsumeNumberResult.Success;
1420return ConsumeNumberResult.Success;
1423return ConsumeNumberResult.OperationIncomplete;
1426private ConsumeNumberResult ConsumeDecimalDigitsMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState)
1442return ConsumeNumberResult.NeedMoreData;
1460private ConsumeNumberResult ConsumeSignMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState)
1477return ConsumeNumberResult.NeedMoreData;
1505return ConsumeNumberResult.NeedMoreData;
1521return ConsumeNumberResult.OperationIncomplete;