noun: remove IndirectAtom::as_mut_bytes

This commit is contained in:
Matthew LeVan 2024-01-17 20:46:45 -05:00
parent 718842a49a
commit c4c1388573

View File

@ -483,10 +483,6 @@ impl IndirectAtom {
unsafe { from_raw_parts(self.data_pointer() as *const u8, self.size() << 3) }
}
pub fn as_mut_bytes(&mut self) -> &mut [u8] {
unsafe { from_raw_parts_mut(self.data_pointer_mut() as *mut u8, self.size() << 3) }
}
/** BitSlice view on an indirect atom, with lifetime tied to reference to indirect atom. */
pub fn as_bitslice(&self) -> &BitSlice<u64, Lsb0> {
BitSlice::from_slice(self.as_slice())