pub struct RawMemoryFile<'a> { /* private fields */ }
Implementations§
Source§impl<'a> RawMemoryFile<'a>
impl<'a> RawMemoryFile<'a>
Sourcepub unsafe fn new_with_size(
name: &'a str,
size: usize,
) -> Result<Self, Box<dyn Error + Send + Sync>>
pub unsafe fn new_with_size( name: &'a str, size: usize, ) -> Result<Self, Box<dyn Error + Send + Sync>>
§Safety
If the generic struct given does not match the memory layout, this is probably going to make shit hit the fan Do not use directly unless you know what you’re doing.
Sourcepub unsafe fn new_with_offset_and_size(
name: &'a str,
offset: usize,
size: usize,
) -> Result<Self, Box<dyn Error + Send + Sync>>
pub unsafe fn new_with_offset_and_size( name: &'a str, offset: usize, size: usize, ) -> Result<Self, Box<dyn Error + Send + Sync>>
§Safety
If the generic struct given does not match the memory layout, this is probably going to make shit hit the fan Do not use directly unless you know what you’re doing.
pub fn read(&self) -> &'a [u8] ⓘ
Trait Implementations§
Source§impl<'a> Drop for RawMemoryFile<'a>
impl<'a> Drop for RawMemoryFile<'a>
impl<'a> Send for RawMemoryFile<'a>
impl<'a> Sync for RawMemoryFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for RawMemoryFile<'a>
impl<'a> RefUnwindSafe for RawMemoryFile<'a>
impl<'a> Unpin for RawMemoryFile<'a>
impl<'a> UnwindSafe for RawMemoryFile<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more