23 references to ReadState
System (23)
net\System\Net\_ChunkParser.cs (23)
50private ReadState readState; 115this.readState = ReadState.ChunkLength; 171Contract.Assert((readState == ReadState.ChunkLength) || (readState == ReadState.PayloadEnd) || 172((readState == ReadState.Payload) && (currentChunkBytesRead < currentChunkLength)), 185if (readState != ReadState.Done) 210Contract.Assert(readState < ReadState.Done, "We're already done. No need to process state."); 214while (readState < ReadState.Done) 218case ReadState.ChunkLength: 222case ReadState.Extension: 226case ReadState.Payload: 230case ReadState.PayloadEnd: 234case ReadState.Trailer: 312readState = ReadState.Error; 320if (readState == ReadState.ChunkLength) 436if (readState == ReadState.Payload) 519Contract.Assert(readState == ReadState.Payload, 538readState = ReadState.PayloadEnd; 567readState = ReadState.Extension; 625readState = ReadState.Trailer; 629readState = ReadState.Payload; 649readState = ReadState.ChunkLength; 693readState = ReadState.Done;