The LZMA-alone format has a 13-byte header: one properties byte (lc, lp, pb), a 32-bit dictionary size and a 64-bit uncompressed size (or all ones for unknown size, ending with an end marker), followed by the range-coded stream. There is no checksum.
Where it is used
Legacy compressed files and embedded firmware.
History
Introduced by Igor Pavlov with 7-Zip; superseded by XZ.
Status today
Legacy, still handled by many tools.
Structures read by the implementation
Offsets are in bytes from the start of the buffer named in each heading. Field names are taken from the implementation and are not an official specification. Fixed-width integers are shown as u/i (unsigned/signed) followed by bit width and byte order.
LzmaAloneArchiveModule.Mount buffer h · LzmaAloneArchiveModule.cs
Offset
Size
Type
Field
Notes
0x0
1
u8
–
0x5
8
u64 LE
Uncompressed
LzmaAloneArchiveModule.Probe buffer h · LzmaAloneArchiveModule.cs
Structures and constants were extracted from: IO/Compression/LzmaDecoder.cs, Modules/FileSystems/LzmaAloneArchiveModule.cs. Prose sections are a summary from public sources; verify details before relying on them.