Trait libafl::bolts::shmem::ShMem[][src]

pub trait ShMem: Sized + Debug + Clone {
    fn id(&self) -> ShMemId;
fn len(&self) -> usize;
fn map(&self) -> &[u8];
fn map_mut(&mut self) -> &mut [u8]; fn is_empty(&self) -> bool { ... }
fn description(&self) -> ShMemDescription { ... }
fn write_to_env(&self, env_name: &str) -> Result<(), Error> { ... } }
Expand description

A ShMem is an interface to shared maps. They are the backbone of crate::bolts::llmp for inter-process communication. All you need for scaling on a new target is to implement this interface, as well as the respective ShMemProvider.

Required methods

Get the id of this shared memory mapping

Get the size of this mapping

The actual shared map, in memory

The actual shared map, mutable

Provided methods

Check if the mapping is empty

Get the description of the shared memory mapping

Write this map’s config to env

Implementors