Trait libafl::observers::map::MapObserver[][src]

pub trait MapObserver<T>: Named + Serialize + DeserializeOwned where
    T: Integer + Default + Copy
{ fn map(&self) -> &[T];
fn map_mut(&mut self) -> &mut [T];
fn initial(&self) -> T;
fn initial_mut(&mut self) -> &mut T;
fn set_initial(&mut self, initial: T); fn usable_count(&self) -> usize { ... }
fn count_bytes(&self) -> u64 { ... }
fn hash(&self) -> u64 { ... }
fn reset_map(&mut self) -> Result<(), Error> { ... } }
Expand description

A MapObserver observes the static map, as oftentimes used for afl-like coverage information

Required methods

Get the map

Get the map (mutable)

Get the initial value for reset()

Get the initial value for reset()

Set the initial value for reset()

Provided methods

Get the number of usable entries in the map (all by default)

Count the set bytes in the map

Compute the hash of the map

Reset the map

Implementors