pub struct MetadataStoreFlags {
pub persistent: bool,
pub marks_analysis_changed: bool,
}Expand description
Controls how a metadata write behaves on a BinaryView or crate::function::Function.
persistent serializes the value into the BNDB snapshot so it survives reload. Without it
the value is kept in memory for this session only.
marks_analysis_changed marks the file as analysis-changed (drives the “dirty” indicator).
Set this for genuine user-visible edits and leave it clear when caching re-derivable data.
Fields§
§persistent: bool§marks_analysis_changed: boolImplementations§
Source§impl MetadataStoreFlags
impl MetadataStoreFlags
Sourcepub const EPHEMERAL: Self
pub const EPHEMERAL: Self
Neither persisted nor dirties the view. Equivalent to the legacy
BinaryView::store_metadata/Function::store_metadata is_auto = true.
Sourcepub const PERSISTENT: Self
pub const PERSISTENT: Self
Persisted without dirtying the view. Equivalent to the legacy Function::store_metadata
is_auto = false (where Function metadata writes never affected the file’s modified
state). For BinaryView writes that should also dirty the view, chain .marks_analysis_changed(true).
pub fn persistent(self, persistent: bool) -> Self
pub fn marks_analysis_changed(self, marks_analysis_changed: bool) -> Self
Trait Implementations§
Source§impl Clone for MetadataStoreFlags
impl Clone for MetadataStoreFlags
Source§fn clone(&self) -> MetadataStoreFlags
fn clone(&self) -> MetadataStoreFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more