Merge pull request #11 from schumilo/main

fix bitmap_buffer() and bitmap_buffer_mut()
This commit is contained in:
Sergej Schumilo 2022-04-12 15:00:37 +02:00 committed by GitHub
commit acaf7f6346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {