// Copyright 2023 The Wuffs Authors. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. // // SPDX-License-Identifier: Apache-2.0 OR MIT // -------- // Quirks are discussed in (/doc/note/quirks.md). // // The base38 encoding of "lzma" is 0x141638. Left shifting by 10 gives // 0x5058_E000. pri const QUIRKS_BASE : base.u32 = 0x5058_E000 // -------- // When this quirk is set, a positive value indicates an extension to the LZMA // format. Zero means to use the default LZMA format. // // When positive, the low byte of the u64 value indicates the extension. // Currently, the only valid extension is 0x02, indicating LZMA2. // // For LZMA2, the high 7 bytes (shifted right by 8) must be less than or equal // to 40 and indicates the dictionary size. See section "5.3.1. LZMA2" of // https://tukaani.org/xz/xz-file-format.txt pub const QUIRK_FORMAT_EXTENSION : base.u32 = 0x5058_E000 | 0x00