| 1234567891011121314151617181920212223242526 |
- Subject: PR/166: flanglet: Add Kanzi magic
- Origin: upstream, commit FILE5_47-17-g50fc7a6b <https://github.com/file/file/commit/FILE5_47-17-g50fc7a6b>
- Author: Christos Zoulas <christos@zoulas.com>
- Date: Sun Apr 12 21:14:24 2026 +0000
- Forwarded: not-needed
- --- a/magic/Magdir/compress
- +++ b/magic/Magdir/compress
- @@ -465,3 +465,17 @@
- # https://github.com/xamarin/xamarin-android/pull/4686
- 0 string XALZ Xamarin LZ4-compressed assembly
- >8 ulelong x \b, uncompressed size %u
- +
- +#------------------------------------------------------------------------------
- +# Kanzi: Kanzi compressed data
- +# From: Frederic Langlet <flanglet@gmail.com>
- +# https://github.com/flanglet/kanzi-cpp/wiki/Bitstream-Format
- +0 belong 0x4B414E5A kanzi compressed data
- +!:mime application/x-knz
- +!:ext knz
- +>4 byte/16 x \b, version %u
- +
- +# Branch for Version > 5 (Uses Bits 3 and 2 for checksum)
- +>4 byte/16 >5
- +>>4 byte&0x0C 0x04 \b, 32-bit checksum
- +>>4 byte&0x0C 0x08 \b, 64-bit checksum
|