Ignore:
Timestamp:
Apr 16, 2015, 2:22:24 AM (4 years ago)
Author:
Peter
Message:

Implement functions to get/set free text in BamHeader?. As setting the
header text modifies underlying data, copy and assignment are now
implemented as hard copy (rather than the implicit pointer copy as
before). It also means that the bam_hdr_t* is no longer owned by
InBamFile?, but is now owned by BamHeader? and destroyed in its
destructor.

refs #817

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/omic/BamFile.cc

    r3359 r3408  
    9292#else
    9393    open_base(fn, "rb", NULL);
    94     header_.header_ = sf_->header;
     94    header_.header_ = detail::bam_hdr_dup(sf_->header);
    9595#endif
    9696    if (header_.header_ == NULL) {
Note: See TracChangeset for help on using the changeset viewer.