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

◆ GetParsedValueLength()

override int System.Net.Http.Headers.Int64NumberHeaderParser.GetParsedValueLength ( string value,
int startIndex,
object storeValue,
out object parsedValue )
inlineprotected

Definition at line 19 of file Int64NumberHeaderParser.cs.

20 {
21 parsedValue = null;
22 int numberLength = HttpRuleParser.GetNumberLength(value, startIndex, allowDecimal: false);
23 if (numberLength == 0 || numberLength > 19)
24 {
25 return 0;
26 }
27 long result = 0L;
28 if (!HeaderUtilities.TryParseInt64(value, startIndex, numberLength, out result))
29 {
30 return 0;
31 }
32 parsedValue = result;
33 return numberLength;
34 }

References System.Net.Http.HttpRuleParser.GetNumberLength(), System.L, System.startIndex, System.Net.Http.Headers.HeaderUtilities.TryParseInt64(), and System.value.