Files
app/shared
Claude 4aca104548 ZMODEM: zstd compression (CANZSTD/ZTZSTD) and resume
Zstd.kt is a plain Kotlin zstd (RFC 8878) for whole frames, ported from
D-Modem's link/zstd_codec.cpp, so the JVM, iOS and Linux targets share
it, with XXH64 for the content checksum. ZModem sets CANZSTD in its
ZRINIT, and sends a file as zstd frames (ZTZSTD in the ZFILE's ZF2) when
the receiver sets it, the type is not compressed and the first 64 KiB
gets 5% smaller. Positions stay offsets in the file and whole frames are
written, so ZRPOS and resume work as before; frames halve on each ZRPOS.

Incoming gets resume() and interrupted(): FolderIncoming and
PosixFolderIncoming keep a file cut short as a hidden .part and the next
transfer of the same name and size goes on after it.

Android: a terminal setting turns zstd off; the progress shows zstd.
iOS: the transfer view shows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRR1WNeCEtXUcjE8RgY
2026-11-20 22:21:15 +00:00
..