Skip to content

Commit

Permalink
Merge pull request #11 from schumilo/main
Browse files Browse the repository at this point in the history
fix bitmap_buffer() and bitmap_buffer_mut()
  • Loading branch information
schumilo authored Apr 12, 2022
2 parents 70bf7ad + 5200792 commit acaf7f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libnyx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ impl NyxProcess {
}

pub fn bitmap_buffer(&self) -> &[u8] {
self.process.bitmap
&self.process.bitmap[.. self.process.bitmap_size]
}

pub fn bitmap_buffer_mut(&mut self) -> &mut [u8] {
self.process.bitmap
&mut self.process.bitmap[.. self.process.bitmap_size]
}

pub fn bitmap_buffer_size(&self) -> usize {
Expand Down

0 comments on commit acaf7f6

Please sign in to comment.