mirror of
https://github.com/urbit/ares.git
synced 2024-11-23 00:25:49 +03:00
noun: remove IndirectAtom::as_mut_bytes
This commit is contained in:
parent
718842a49a
commit
c4c1388573
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user