165 references to DataParseStatus
System (165)
net\System\Net\_ChunkParser.cs (82)
212
DataParseStatus
result;
245
case
DataParseStatus
.ContinueParsing:
249
case
DataParseStatus
.Done:
254
case
DataParseStatus
.Invalid:
255
case
DataParseStatus
.DataTooBig:
260
case
DataParseStatus
.NeedMoreData:
457
private
DataParseStatus
HandlePayload()
478
return
DataParseStatus
.Done;
513
return
DataParseStatus
.Done;
545
private
DataParseStatus
ParseChunkLength()
560
return
DataParseStatus
.Invalid;
568
return
DataParseStatus
.ContinueParsing;
584
return
DataParseStatus
.Invalid;
593
return
DataParseStatus
.NeedMoreData;
596
private
DataParseStatus
ParseExtension()
602
DataParseStatus
result = ParseWhitespaces(ref currentPos);
603
if (result !=
DataParseStatus
.ContinueParsing)
609
if (result !=
DataParseStatus
.ContinueParsing)
615
if (result !=
DataParseStatus
.ContinueParsing)
632
return
DataParseStatus
.ContinueParsing;
635
private
DataParseStatus
ParsePayloadEnd()
639
DataParseStatus
crlfResult = ParseCRLF(ref bufferCurrentPos);
641
if (crlfResult !=
DataParseStatus
.ContinueParsing)
651
return
DataParseStatus
.ContinueParsing;
654
private
DataParseStatus
ParseTrailer()
656
if (ParseWhitespaces(ref bufferCurrentPos) ==
DataParseStatus
.NeedMoreData)
658
return
DataParseStatus
.NeedMoreData;
664
DataParseStatus
result;
680
Contract.Assert(result !=
DataParseStatus
.ContinueParsing,
683
if ((result ==
DataParseStatus
.NeedMoreData) || (result ==
DataParseStatus
.Done))
688
if (result !=
DataParseStatus
.Done)
698
return
DataParseStatus
.Done;
701
private
DataParseStatus
ParseCRLF(ref int pos)
703
Contract.Ensures((Contract.Result<
DataParseStatus
>() !=
DataParseStatus
.Done) ||
704
(Contract.Result<
DataParseStatus
>() !=
DataParseStatus
.DataTooBig));
710
return
DataParseStatus
.NeedMoreData;
715
return
DataParseStatus
.Invalid;
719
return
DataParseStatus
.ContinueParsing;
722
private
DataParseStatus
ParseWhitespaces(ref int pos)
724
Contract.Ensures((Contract.Result<
DataParseStatus
>() ==
DataParseStatus
.ContinueParsing) ||
725
(Contract.Result<
DataParseStatus
>() ==
DataParseStatus
.NeedMoreData) ||
726
(Contract.Result<
DataParseStatus
>() !=
DataParseStatus
.DataTooBig));
738
return
DataParseStatus
.ContinueParsing;
745
return
DataParseStatus
.NeedMoreData;
753
private
DataParseStatus
ParseExtensionNameValuePairs(ref int pos)
755
Contract.Ensures((Contract.Result<
DataParseStatus
>() !=
DataParseStatus
.Done) ||
756
(Contract.Result<
DataParseStatus
>() !=
DataParseStatus
.DataTooBig));
762
DataParseStatus
result;
770
if (result !=
DataParseStatus
.ContinueParsing)
776
if (result !=
DataParseStatus
.ContinueParsing)
782
if (result !=
DataParseStatus
.ContinueParsing)
795
if (result !=
DataParseStatus
.ContinueParsing)
801
if (result ==
DataParseStatus
.Invalid)
806
if (result !=
DataParseStatus
.ContinueParsing)
812
if (result !=
DataParseStatus
.ContinueParsing)
821
return
DataParseStatus
.ContinueParsing;
824
private
DataParseStatus
ParseQuotedString(ref int pos)
826
Contract.Ensures((Contract.Result<
DataParseStatus
>() !=
DataParseStatus
.Done) ||
827
(Contract.Result<
DataParseStatus
>() !=
DataParseStatus
.DataTooBig));
831
return
DataParseStatus
.NeedMoreData;
836
return
DataParseStatus
.Invalid;
846
return
DataParseStatus
.ContinueParsing;
859
return
DataParseStatus
.NeedMoreData;
874
return
DataParseStatus
.NeedMoreData;
877
private
DataParseStatus
ParseToken(ref int pos)
879
Contract.Ensures((Contract.Result<
DataParseStatus
>() !=
DataParseStatus
.Done) ||
880
(Contract.Result<
DataParseStatus
>() !=
DataParseStatus
.DataTooBig));
891
return
DataParseStatus
.ContinueParsing;
895
return
DataParseStatus
.Invalid;
900
return
DataParseStatus
.NeedMoreData;
net\System\Net\_Connection.cs (51)
1662
private
DataParseStatus
ParseStatusLine(
1675
DataParseStatus
parseStatus =
DataParseStatus
.Done;
1759
parseStatus =
DataParseStatus
.DataTooBig;
1785
parseStatus =
DataParseStatus
.NeedMoreData;
1798
parseStatus =
DataParseStatus
.DataTooBig;
1809
parseStatus =
DataParseStatus
.NeedMoreData;
1816
parseStatus =
DataParseStatus
.DataTooBig;
1822
parseStatus =
DataParseStatus
.Done;
1831
if (parseStatus ==
DataParseStatus
.Done && statusState != AfterStatusCode) {
1839
parseStatus =
DataParseStatus
.Invalid;
1846
if (parseStatus ==
DataParseStatus
.Invalid) {
1860
private static unsafe
DataParseStatus
ParseStatusLineStrict(
1879
DataParseStatus
parseStatus =
DataParseStatus
.DataTooBig;
1883
parseStatus =
DataParseStatus
.NeedMoreData;
1903
parseStatus =
DataParseStatus
.Invalid;
1914
parseStatus =
DataParseStatus
.Invalid;
1926
parseStatus =
DataParseStatus
.Invalid;
1944
parseStatus =
DataParseStatus
.Invalid;
1957
parseStatus =
DataParseStatus
.Invalid;
1988
parseStatus =
DataParseStatus
.Invalid;
2014
parseStatus =
DataParseStatus
.Invalid;
2059
parseStatus =
DataParseStatus
.Invalid;
2100
parseStatus =
DataParseStatus
.Invalid;
2104
parseStatus =
DataParseStatus
.Done;
2116
if (parseStatus ==
DataParseStatus
.Invalid) {
2365
private
DataParseStatus
ParseStreamData(ref ConnectionReturnResult returnResult)
2374
return
DataParseStatus
.Invalid;
2388
return
DataParseStatus
.Invalid;
2424
DataParseStatus
result;
2433
result =
DataParseStatus
.Done;
2441
result =
DataParseStatus
.ContinueParsing;
2450
result =
DataParseStatus
.Done;
2487
private
DataParseStatus
ParseResponseData(ref ConnectionReturnResult returnResult, out bool requestDone, out CoreResponseData continueResponseData)
2491
DataParseStatus
parseStatus =
DataParseStatus
.NeedMoreData;
2492
DataParseStatus
parseSubStatus;
2553
parseStatus =
DataParseStatus
.Invalid;
2610
if (parseSubStatus ==
DataParseStatus
.Done)
2618
else if (parseSubStatus !=
DataParseStatus
.NeedMoreData)
2662
if (parseSubStatus ==
DataParseStatus
.Invalid || parseSubStatus ==
DataParseStatus
.DataTooBig)
2671
else if (parseSubStatus ==
DataParseStatus
.Done)
3485
DataParseStatus
parseStatus = ParseResponseData(ref returnResult, out requestDone, out continueResponseData);
3490
if (parseStatus !=
DataParseStatus
.NeedMoreData)
3493
if (parseStatus ==
DataParseStatus
.Invalid || parseStatus ==
DataParseStatus
.DataTooBig)
3505
if (parseStatus ==
DataParseStatus
.Invalid) {
3516
else if (parseStatus ==
DataParseStatus
.Done)
3531
if (parseStatus ==
DataParseStatus
.NeedMoreData)
net\System\Net\WebHeaderCollection.cs (32)
1194
internal unsafe
DataParseStatus
ParseHeaders(
1208
return
DataParseStatus
.NeedMoreData;
1226
DataParseStatus
parseStatus =
DataParseStatus
.Invalid;
1276
parseStatus =
DataParseStatus
.DataTooBig;
1289
parseStatus =
DataParseStatus
.NeedMoreData;
1311
parseStatus =
DataParseStatus
.DataTooBig;
1319
parseStatus =
DataParseStatus
.DataTooBig;
1330
parseStatus =
DataParseStatus
.NeedMoreData;
1356
parseStatus =
DataParseStatus
.NeedMoreData;
1364
parseStatus =
DataParseStatus
.DataTooBig;
1384
parseStatus =
DataParseStatus
.NeedMoreData;
1398
parseStatus =
DataParseStatus
.DataTooBig;
1410
parseStatus =
DataParseStatus
.NeedMoreData;
1431
parseStatus =
DataParseStatus
.DataTooBig;
1443
parseStatus =
DataParseStatus
.NeedMoreData;
1472
parseStatus =
DataParseStatus
.DataTooBig;
1505
parseStatus =
DataParseStatus
.Done;
1513
if (parseStatus ==
DataParseStatus
.Invalid) {
1558
internal unsafe
DataParseStatus
ParseHeadersStrict(
1569
DataParseStatus
parseStatus =
DataParseStatus
.Invalid;
1574
DataParseStatus
sizeError =
DataParseStatus
.DataTooBig;
1578
sizeError =
DataParseStatus
.NeedMoreData;
1605
parseStatus =
DataParseStatus
.Done;
1609
parseStatus =
DataParseStatus
.Invalid;
1624
parseStatus =
DataParseStatus
.Invalid;
1660
parseStatus =
DataParseStatus
.Invalid;
1671
parseStatus =
DataParseStatus
.Invalid;
1751
parseStatus =
DataParseStatus
.Invalid;
1840
if (parseStatus ==
DataParseStatus
.Invalid) {