// Copyright (c) 2026 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information /** Represents an error which happened during LZMA2 decompression. It may indicate that either data is damaged or it might not be compressed with LZMA2 at all. */ public enum LZMA2Error: Error { /// Dictionary size is too big, or has reserved bits set, or is in incorrect format in general. case wrongDictionarySize /// Unknown conrol byte value of LZMA2 packet. case wrongControlByte /// Unknown reset instruction encountered in LZMA2 packet. case wrongReset /** Either size of decompressed data isn't equal to the one specified in LZMA2 packet or amount of compressed data read is different from the one stored in LZMA2 packet. */ case wrongSizes }