Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow BYTE_ARRAY_STOP to work on non-zero STOP code with TOK3.
Our htscodec name tokeniser decoder always adds nul bytes between names. This happens to match the default STOP byte used in htslib's CRAM implementation, but there's nothing to say it has to be 0 and indeed Java uses 9 (tab). This is an oversight and ideally we'd change the name tokeniser decode function to take an additional parameter to specify the stop byte, but that's changing the API. Easiest is just to recognise this on-the-fly and correct the error by looking for a different stop byte.
- Loading branch information