pub fn from_bytes(slice: &[u8], align: Align) -> Self {
        let mut undef_mask = UndefMask::new(Size::ZERO);
        undef_mask.grow(Size::from_bytes(slice.len() as u64), true);
        Self {
            bytes: slice.to_owned(),
            relocations: Relocations::new(),
            undef_mask,
            align,
            mutability: Mutability::Immutable,
        }
    }
/// Creates a read-only allocation initialized by the given bytes
Creates a read-only allocation initialized by the given bytes
Creates a read - only allocation initialized by the given bytes
pub fn from_bytes(slice: &[u8], align: Align) -> Self {
        let mut undef_mask = UndefMask::new(Size::ZERO);
        undef_mask.grow(Size::from_bytes(slice.len() as u64), true);
        Self {
            bytes: slice.to_owned(),
            relocations: Relocations::new(),
            undef_mask,
            align,
            mutability: Mutability::Immutable,
        }
    }
pub fn from_bytes ( slice : & [ u8 ] , align : Align ) -> Self { let mut undef_mask = UndefMask :: new ( Size :: ZERO ) ; undef_mask . grow ( Size :: from_bytes ( slice . len ( ) as u64 ) , true ) ; Self { bytes : slice . to_owned ( ) , relocations : Relocations :: new ( ) , undef_mask , align , mutability : Mutability :: Immutable , } }
Creates a read-only allocation initialized by the given bytes
Creates a read - only allocation initialized by the given bytes
slice
&[u8]
align
Align
slice
&[u8]
align
Align