62 references to InflaterState
System (62)
sys\System\IO\compression\Inflater.cs (62)
65InflaterState state; 118state = InflaterState.ReadingHeader; // start by reading Header info 121state = InflaterState.ReadingBFinal; // start by reading BFinal bit 131return (state == InflaterState.Done || state== InflaterState.VerifyingFooter); 168if( state == InflaterState.VerifyingFooter) { // finished reading CRC 209if (state == InflaterState.ReadingHeader) { 213state = InflaterState.ReadingBFinal; 215else if (state == InflaterState.StartReadingFooter || state == InflaterState.ReadingFooter) { 219state = InflaterState.VerifyingFooter; 224if( state == InflaterState.ReadingBFinal) { // reading bfinal bit 230state = InflaterState.ReadingBType; 233if( state == InflaterState.ReadingBType) { 236state = InflaterState.ReadingBType; 243state = InflaterState.ReadingNumLitCodes; 249state = InflaterState.DecodeTop; 253state = InflaterState.UncompressedAligning; 261if (state < InflaterState.DecodeTop) { // we are reading the header 284state = InflaterState.StartReadingFooter; 286state = InflaterState.Done; 310case InflaterState.UncompressedAligning: // intial state when calling this function 313state = InflaterState.UncompressedByte1; 314goto case InflaterState.UncompressedByte1; 316case InflaterState.UncompressedByte1: // decoding block length 317case InflaterState.UncompressedByte2: 318case InflaterState.UncompressedByte3: 319case InflaterState.UncompressedByte4: 325blockLengthBuffer[state - InflaterState.UncompressedByte1] = (byte)bits; 326if( state == InflaterState.UncompressedByte4) { 340case InflaterState.DecodingUncompressed: // copying block data 348state = InflaterState.ReadingBFinal; 379case InflaterState.DecodeTop: 396state = InflaterState.ReadingBFinal; 417goto case InflaterState.HaveInitialLength; 421case InflaterState.HaveInitialLength: 423state = InflaterState.HaveInitialLength; 434state = InflaterState.HaveFullLength; 435goto case InflaterState.HaveFullLength; 437case InflaterState.HaveFullLength: 452state = InflaterState.HaveDistCode; 453goto case InflaterState.HaveDistCode; 455case InflaterState.HaveDistCode: 474state = InflaterState.DecodeTop; 512case InflaterState.ReadingNumLitCodes: 518state = InflaterState.ReadingNumDistCodes; 519goto case InflaterState.ReadingNumDistCodes; 521case InflaterState.ReadingNumDistCodes: 527state = InflaterState.ReadingNumCodeLengthCodes; 528goto case InflaterState.ReadingNumCodeLengthCodes; 530case InflaterState.ReadingNumCodeLengthCodes: 537state = InflaterState.ReadingCodeLengthCodes; 538goto case InflaterState.ReadingCodeLengthCodes; 540case InflaterState.ReadingCodeLengthCodes: 559state = InflaterState.ReadingTreeCodesBefore; 560goto case InflaterState.ReadingTreeCodesBefore; 562case InflaterState.ReadingTreeCodesBefore: 563case InflaterState.ReadingTreeCodesAfter: 565if( state == InflaterState.ReadingTreeCodesBefore) { 588state = InflaterState.ReadingTreeCodesAfter; 632state = InflaterState.ReadingTreeCodesBefore; // we want to read the next code. 655state = InflaterState.DecodeTop;