57 references to InflaterState
System.IO.Compression (57)
System\IO\Compression\DeflateManaged\InflaterManaged.cs (57)
56private InflaterState _state; 92_state = InflaterState.ReadingBFinal; // start by reading BFinal bit 100public bool Finished() => _state == InflaterState.Done || _state == InflaterState.VerifyingFooter; 127_state = InflaterState.Done; 181if (_state == InflaterState.ReadingBFinal) 189_state = InflaterState.ReadingBType; 192if (_state == InflaterState.ReadingBType) 197_state = InflaterState.ReadingBType; 204_state = InflaterState.ReadingNumLitCodes; 210_state = InflaterState.DecodeTop; 214_state = InflaterState.UncompressedAligning; 224if (_state < InflaterState.DecodeTop) 253_state = InflaterState.Done; 278case InflaterState.UncompressedAligning: // initial state when calling this function 281_state = InflaterState.UncompressedByte1; 282goto case InflaterState.UncompressedByte1; 284case InflaterState.UncompressedByte1: // decoding block length 285case InflaterState.UncompressedByte2: 286case InflaterState.UncompressedByte3: 287case InflaterState.UncompressedByte4: 294_blockLengthBuffer[_state - InflaterState.UncompressedByte1] = (byte)bits; 295if (_state == InflaterState.UncompressedByte4) 310case InflaterState.DecodingUncompressed: // copying block data 319_state = InflaterState.ReadingBFinal; 355case InflaterState.DecodeTop: 378_state = InflaterState.ReadingBFinal; 406goto case InflaterState.HaveInitialLength; 410case InflaterState.HaveInitialLength: 413_state = InflaterState.HaveInitialLength; 426_state = InflaterState.HaveFullLength; 427goto case InflaterState.HaveFullLength; 429case InflaterState.HaveFullLength: 451_state = InflaterState.HaveDistCode; 452goto case InflaterState.HaveDistCode; 454case InflaterState.HaveDistCode: 475_state = InflaterState.DecodeTop; 515case InflaterState.ReadingNumLitCodes: 522_state = InflaterState.ReadingNumDistCodes; 523goto case InflaterState.ReadingNumDistCodes; 525case InflaterState.ReadingNumDistCodes: 532_state = InflaterState.ReadingNumCodeLengthCodes; 533goto case InflaterState.ReadingNumCodeLengthCodes; 535case InflaterState.ReadingNumCodeLengthCodes: 543_state = InflaterState.ReadingCodeLengthCodes; 544goto case InflaterState.ReadingCodeLengthCodes; 546case InflaterState.ReadingCodeLengthCodes: 568_state = InflaterState.ReadingTreeCodesBefore; 569goto case InflaterState.ReadingTreeCodesBefore; 571case InflaterState.ReadingTreeCodesBefore: 572case InflaterState.ReadingTreeCodesAfter: 575if (_state == InflaterState.ReadingTreeCodesBefore) 607_state = InflaterState.ReadingTreeCodesAfter; 632_state = InflaterState.ReadingTreeCodesAfter; 651_state = InflaterState.ReadingTreeCodesAfter; 666_state = InflaterState.ReadingTreeCodesBefore; // we want to read the next code. 690_state = InflaterState.DecodeTop;