57 references to InflaterState
System.IO.Compression (57)
System\IO\Compression\DeflateManaged\InflaterManaged.cs (57)
50private InflaterState _state; 86_state = InflaterState.ReadingBFinal; // start by reading BFinal bit 94public bool Finished() => _state == InflaterState.Done || _state == InflaterState.VerifyingFooter; 121_state = InflaterState.Done; 175if (_state == InflaterState.ReadingBFinal) 183_state = InflaterState.ReadingBType; 186if (_state == InflaterState.ReadingBType) 191_state = InflaterState.ReadingBType; 198_state = InflaterState.ReadingNumLitCodes; 204_state = InflaterState.DecodeTop; 208_state = InflaterState.UncompressedAligning; 218if (_state < InflaterState.DecodeTop) 247_state = InflaterState.Done; 272case InflaterState.UncompressedAligning: // initial state when calling this function 275_state = InflaterState.UncompressedByte1; 276goto case InflaterState.UncompressedByte1; 278case InflaterState.UncompressedByte1: // decoding block length 279case InflaterState.UncompressedByte2: 280case InflaterState.UncompressedByte3: 281case InflaterState.UncompressedByte4: 288_blockLengthBuffer[_state - InflaterState.UncompressedByte1] = (byte)bits; 289if (_state == InflaterState.UncompressedByte4) 304case InflaterState.DecodingUncompressed: // copying block data 313_state = InflaterState.ReadingBFinal; 348case InflaterState.DecodeTop: 371_state = InflaterState.ReadingBFinal; 399goto case InflaterState.HaveInitialLength; 403case InflaterState.HaveInitialLength: 406_state = InflaterState.HaveInitialLength; 419_state = InflaterState.HaveFullLength; 420goto case InflaterState.HaveFullLength; 422case InflaterState.HaveFullLength: 444_state = InflaterState.HaveDistCode; 445goto case InflaterState.HaveDistCode; 447case InflaterState.HaveDistCode: 468_state = InflaterState.DecodeTop; 508case InflaterState.ReadingNumLitCodes: 515_state = InflaterState.ReadingNumDistCodes; 516goto case InflaterState.ReadingNumDistCodes; 518case InflaterState.ReadingNumDistCodes: 525_state = InflaterState.ReadingNumCodeLengthCodes; 526goto case InflaterState.ReadingNumCodeLengthCodes; 528case InflaterState.ReadingNumCodeLengthCodes: 536_state = InflaterState.ReadingCodeLengthCodes; 537goto case InflaterState.ReadingCodeLengthCodes; 539case InflaterState.ReadingCodeLengthCodes: 561_state = InflaterState.ReadingTreeCodesBefore; 562goto case InflaterState.ReadingTreeCodesBefore; 564case InflaterState.ReadingTreeCodesBefore: 565case InflaterState.ReadingTreeCodesAfter: 568if (_state == InflaterState.ReadingTreeCodesBefore) 600_state = InflaterState.ReadingTreeCodesAfter; 627_state = InflaterState.ReadingTreeCodesAfter; 648_state = InflaterState.ReadingTreeCodesAfter; 665_state = InflaterState.ReadingTreeCodesBefore; // we want to read the next code. 689_state = InflaterState.DecodeTop;