We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 161f759 commit 93995abCopy full SHA for 93995ab
src/bam/record.rs
@@ -859,7 +859,14 @@ impl Record {
859
if self.aux(tag).is_ok() {
860
return Err(Error::BamAuxTagAlreadyPresent);
861
}
862
+ self.push_aux_unchecked(tag, value)
863
+ }
864
865
+ /// Add auxiliary data, without checking if the tag is present.
866
+ ///
867
+ /// The caller should ensure that the same tag is not pushed more than once.
868
+ /// This is provided as a performance optimization.
869
+ pub fn push_aux_unchecked(&mut self, tag: &[u8], value: Aux<'_>) -> Result<()> {
870
let ctag = tag.as_ptr() as *mut c_char;
871
let ret = unsafe {
872
match value {
0 commit comments