Struct bam::index::VirtualOffset [−][src]
pub struct VirtualOffset(_);Expand description
Virtual offset. Represents block_offset << 16 | contents_offset, where
block_offset is u48 and represents the offset in the bgzip file to the beginning of the
block (also known as coffset or compressed_offset).
contents_offset is u16 and represents offset in the uncompressed data in a single block
(also known as uoffset or uncompressed_offset).
Implementations
Construct virtual offset from raw value.
Constructs virtual offset from block_offset and contents_offset.
Returns the block offset. Represents the offset in the Bgzip file to the beginning of the block.
Represents the contents offset. Represents the offset into the uncompressed contents of the block.
Checks if the self is the same as block_offset << 16 | contents_offset.
Minimal possible offset, same as VirtualOffset::from_raw(0).
Maximal possible offset, same as VirtualOffset::from_raw(std::u64::MAX).
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for VirtualOffset
impl Send for VirtualOffset
impl Sync for VirtualOffset
impl Unpin for VirtualOffset
impl UnwindSafe for VirtualOffset
Blanket Implementations
Mutably borrows from an owned value. Read more
