Skip to content
Snippets Groups Projects
Commit bceff25a authored by daviesrob's avatar daviesrob Committed by Jennifer Liddle
Browse files

New interfaces to add or update bam integer, float and array aux tags (#694)

* Pull repeated code to expand bam data to its own function

Adds some missing overflow checks and fixes a few places where
l_data was incremented before trying to expand the data buffer
so it would no longer be valid on failure.

* Add bam_aux_update_int() interface

Makes adding or changing the values of integer tags much easier.
Updated tags will grow in size if needed, including moving
any following data.  They will not shrink - if the new data fits
in the old space the size will remain unchanged even if it is
bigger than stricly necessary.

* Add bam_aux_update_float() interface

* Add bam_aux_update_array() interface
parent 19a66ce8
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment