Read gzip-compressed GDSII directly in the CLI

Detect gzip headers on every CLI input and decode all members before parsing.
Keep report offsets relative to the decompressed stream and report corrupt
archives as invalid input. Recognize OASIS headers and explain how to provide
GDSII data.

Cover mixed compressed and plain comparisons, corrupt trailers, and layer-name
output from compressed input.
This commit is contained in:
Jan Petykiewicz 2026-11-17 16:14:53 -08:00
commit 6e4b371046

View file

@ -16,6 +16,8 @@ cell as the carrier. The carrier must contain no ordinary design objects.
The output path must be new; Pheon refuses to overwrite any existing file,
including the input.
The output is uncompressed GDSII, including when the input is gzip-compressed.
The command consolidates the legend into that cell. Existing mappings remain
unless you override them with `--name`. It creates no cells or references, and
copies other records, timestamps, unknown records, and trailing padding byte for