With a trailing full length, the last comes first and the first last, with those in the middle keeping their correct relative orderingSo, don't use the actual length, use length mod 4.
| input | packed |
|---|---|
| ACGT | 1b 00 |
| ACGTA | 1b 01 |
| ACGTAA | 1b 02 |
| ACGTAAA | 1b 03 |
| ACGTAAAA | 1b 00 00 |
| ACGTAAAAA | 1b 00 01 |
In reply to Re^4: Unpack Fail to Decompress String?
by samwyse
in thread Unpack Fail to Decompress String?
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |