Struct binaryninja::database::Snapshot
source · pub struct Snapshot { /* private fields */ }
Implementations§
source§impl Snapshot
impl Snapshot
sourcepub fn set_name<S: BnStrCompatible>(&self, value: S)
pub fn set_name<S: BnStrCompatible>(&self, value: S)
Set the displayed snapshot name
sourcepub fn is_auto_save(&self) -> bool
pub fn is_auto_save(&self) -> bool
If the snapshot was the result of an auto-save
sourcepub fn has_contents(&self) -> bool
pub fn has_contents(&self) -> bool
If the snapshot has contents, and has not been trimmed
sourcepub fn first_parent(&self) -> Option<Snapshot>
pub fn first_parent(&self) -> Option<Snapshot>
Get the first parent of the snapshot, or None if it has no parents
sourcepub fn file_contents(&self) -> Option<DataBuffer>
pub fn file_contents(&self) -> Option<DataBuffer>
Get a buffer of the raw data at the time of the snapshot
sourcepub fn file_contents_hash(&self) -> Option<DataBuffer>
pub fn file_contents_hash(&self) -> Option<DataBuffer>
Get a hash of the data at the time of the snapshot
sourcepub fn undo_entries(&self) -> Array<UndoEntry>
pub fn undo_entries(&self) -> Array<UndoEntry>
Get a list of undo entries at the time of the snapshot
pub fn undo_entries_with_progress<F: FnMut(usize, usize) -> bool>( &self, progress: F ) -> Array<UndoEntry>
sourcepub fn read_data(&self) -> KeyValueStore
pub fn read_data(&self) -> KeyValueStore
Get the backing kvs data with snapshot fields
pub fn read_data_with_progress<F: FnMut(usize, usize) -> bool>( &self, progress: F ) -> KeyValueStore
pub fn undo_data(&self) -> DataBuffer
pub fn store_data<F: FnMut(usize, usize) -> bool>( &self, data: KeyValueStore, progress: F ) -> bool
sourcepub fn has_ancestor(self, other: &Snapshot) -> bool
pub fn has_ancestor(self, other: &Snapshot) -> bool
Determine if this snapshot has another as an ancestor
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Snapshot
impl !Send for Snapshot
impl !Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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