Struct simics::api::interface::interfaces::ImageInterface
source · pub struct ImageInterface {
obj: *mut ConfObject,
interface: *mut image_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut image_interface
Implementations§
source§impl ImageInterface
impl ImageInterface
sourcepub fn read(
&mut self,
to_buf: *mut c_void,
start: uint64,
length: usize,
) -> Result<()>
pub fn read( &mut self, to_buf: *mut c_void, start: uint64, length: usize, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn write(
&mut self,
from_buf: *const c_void,
start: uint64,
length: usize,
) -> Result<()>
pub fn write( &mut self, from_buf: *const c_void, start: uint64, length: usize, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn for_all_spages(
&mut self,
f: Option<unsafe extern "C" fn(p: *mut image_spage_t, ofs: uint64, arg: *mut c_void) -> c_int>,
arg: *mut c_void,
) -> Result<c_int>
pub fn for_all_spages( &mut self, f: Option<unsafe extern "C" fn(p: *mut image_spage_t, ofs: uint64, arg: *mut c_void) -> c_int>, arg: *mut c_void, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn set_persistent(&mut self) -> Result<()>
pub fn set_persistent(&mut self) -> Result<()>
Automatically generated method for the interface
sourcepub fn save_to_file(
&mut self,
file: *const c_char,
start: uint64,
length: uint64,
) -> Result<()>
pub fn save_to_file( &mut self, file: *const c_char, start: uint64, length: uint64, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn save_diff(&mut self, file: *const c_char) -> Result<()>
pub fn save_diff(&mut self, file: *const c_char) -> Result<()>
Automatically generated method for the interface
sourcepub fn clear_range(&mut self, start: uint64, length: uint64) -> Result<()>
pub fn clear_range(&mut self, start: uint64, length: uint64) -> Result<()>
Automatically generated method for the interface
sourcepub fn fill(
&mut self,
start: uint64,
length: uint64,
value: uint8,
) -> Result<()>
pub fn fill( &mut self, start: uint64, length: uint64, value: uint8, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn set(&mut self, ofs: uint64, b: bytes_t) -> Result<()>
pub fn set(&mut self, ofs: uint64, b: bytes_t) -> Result<()>
Automatically generated method for the interface
sourcepub fn get(&mut self, ofs: uint64, size: usize) -> Result<bytes_t>
pub fn get(&mut self, ofs: uint64, size: usize) -> Result<bytes_t>
Automatically generated method for the interface
sourcepub fn flush_writable(&mut self) -> Result<()>
pub fn flush_writable(&mut self) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for ImageInterface
impl Interface for ImageInterface
source§type InternalInterface = image_interface
type InternalInterface = image_interface
The inner interface type, which is a struct of nullable extern “C” function pointers
and must be default constructable as all NULL pointers (i.e. None values)
source§type Name = &'static [u8]
type Name = &'static [u8]
The type of the name of the interface, must be convertible to raw C string to pass to
the simulator
source§fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
Create a new instance of this interface
Auto Trait Implementations§
impl Freeze for ImageInterface
impl RefUnwindSafe for ImageInterface
impl !Send for ImageInterface
impl !Sync for ImageInterface
impl Unpin for ImageInterface
impl UnwindSafe for ImageInterface
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