pub fn compress_reference_segment(data: &Contig) -> Result<(PackedBlock, u8)>Expand description
Compress a reference segment with automatic tuple packing decision
IMPORTANT: Matches C++ AGC’s store_in_archive() logic!
- Checks repetitiveness of data
- If repetitiveness < 0.5: use tuple packing (marker 1, level 13)
- If repetitiveness >= 0.5: use plain ZSTD (marker 0, level 19)
Returns (compressed_data, marker_byte)