Lines Matching refs:Bitmap
22 pub struct Bitmap { struct
26 impl Bitmap { impl
35 pub unsafe fn from_raw<'a>(ptr: *const usize, nbits: usize) -> &'a Bitmap { in from_raw() argument
49 unsafe { &*(data as *const Bitmap) } in from_raw() constant
60 pub unsafe fn from_raw_mut<'a>(ptr: *mut usize, nbits: usize) -> &'a mut Bitmap { in from_raw_mut() argument
72 unsafe { &mut *(data as *mut Bitmap) } in from_raw_mut()
77 core::ptr::from_ref::<Bitmap>(self).cast::<usize>() in as_ptr()
82 core::ptr::from_mut::<Bitmap>(self).cast::<usize>() in as_mut_ptr()
162 type Target = Bitmap;
164 fn deref(&self) -> &Bitmap { in deref() argument
178 unsafe { Bitmap::from_raw(ptr, self.nbits) } in deref()
183 fn deref_mut(&mut self) -> &mut Bitmap { in deref_mut() argument
197 unsafe { Bitmap::from_raw_mut(ptr, self.nbits) } in deref_mut()
292 impl Bitmap { impl
416 pub fn copy_and_extend(&mut self, src: &Bitmap) { in copy_and_extend() argument
514 let b = unsafe { Bitmap::from_raw(fake_bitmap.as_ptr(), fake_bitmap_len) }; in bitmap_borrow()
523 let b = unsafe { Bitmap::from_raw(core::ptr::addr_of!(fake_bitmap), 8) }; in bitmap_copy()