Skip to content

Commit

Permalink
Making several RecordBuffer methods public (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
Addimator authored Feb 22, 2024
1 parent 01c8849 commit e12fffe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bam/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ impl RecordBuffer {
}

/// Return start position of buffer
fn start(&self) -> Option<u64> {
pub fn start(&self) -> Option<u64> {
self.inner.front().map(|rec| rec.pos() as u64)
}

/// Return end position of buffer.
fn end(&self) -> Option<u64> {
pub fn end(&self) -> Option<u64> {
self.inner.back().map(|rec| rec.pos() as u64)
}

fn tid(&self) -> Option<i32> {
pub fn tid(&self) -> Option<i32> {
self.inner.back().map(|rec| rec.tid())
}

Expand Down

0 comments on commit e12fffe

Please sign in to comment.