+ add full NuFX ShrinkIt archive read-write support - #128
Merged
Conversation
Hawkynt
changed the base branch from
feat/shrinkit-nulzw-building-block
to
main
August 29, 2026 11:14
Hawkynt
force-pushed
the
feat/nufx-shrinkit-archive
branch
3 times, most recently
from
August 29, 2026 11:21
7f49e48 to
81c027a
Compare
Hawkynt
force-pushed
the
feat/nufx-shrinkit-archive
branch
2 times, most recently
from
August 30, 2026 01:02
31aab24 to
28e35bb
Compare
Records, their threads, and the LZW/1 and LZW/2 dialects ShrinkIt stores them in, with the CRC each thread carries checked on the way back out. Two things stopped it building: the encoder held its running LZW prefix in a byte, which cannot hold a code past 255, and a record's 16-bit attribute count was bounded against a megabyte, which it can never reach.
Hawkynt
force-pushed
the
feat/nufx-shrinkit-archive
branch
from
August 30, 2026 01:13
28e35bb to
894a91d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Adds genuine NuFX / ShrinkIt archive support for Apple II and Apple IIgs archives. This PR contains the corrected NuLZW commit from #126 plus one NuFX container commit; after #126 merges, the diff naturally reduces to the NuFX-only commit.
Read / validation
Squeeze interoperability
NuFX format-1 threads are not standalone
.SQfiles. They omit the76 FF/checksum/filename header and begin directly with the node table. This PR therefore includes a dedicated NuFX Squeeze path with:0x90RLE (value, 0x90, count; delimiter escaped as0x90,0)76 FFheaderCreation
.shk.sdkwith 512-byte block-count/storage semanticsGenuine direct R/W
CanModifyis backed by byte-level record editing:record_count ± n, exact master EOF and master CRC, so a following edit never reparses stale metadataMaintenance
Tests
All writable methods, nested/Mac-Roman names, SDK, Squeeze wire representation/RLE edges, sequential multi-add master bookkeeping, byte-preserving tail replacement, removal, shrink/defrag payload preservation, CRC validation, encryption rejection and unsafe paths.
Depends on #126 for
NuLzwCodec.