Struct libafl::corpus::cached::CachedOnDiskCorpus [−][src]
pub struct CachedOnDiskCorpus<I> where
I: Input, { /* fields omitted */ }
Expand description
A corpus that keep in memory a maximun number of testcases. The eviction policy is FIFO.
Implementations
Creates the CachedOnDiskCorpus
.
pub fn new_save_meta(
dir_path: PathBuf,
meta_format: Option<OnDiskMetadataFormat>,
cache_max_len: usize
) -> Result<Self, Error>
pub fn new_save_meta(
dir_path: PathBuf,
meta_format: Option<OnDiskMetadataFormat>,
cache_max_len: usize
) -> Result<Self, Error>
Creates the CachedOnDiskCorpus
specifying the type of Metadata
to be saved to disk.
Trait Implementations
Add an entry to the corpus and return its index
Replaces the testcase at the given idx
Removes an entry from the corpus, returning it if it was present.
Current testcase scheduled (mut)
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<I> !RefUnwindSafe for CachedOnDiskCorpus<I>
impl<I> !Send for CachedOnDiskCorpus<I>
impl<I> !Sync for CachedOnDiskCorpus<I>
impl<I> Unpin for CachedOnDiskCorpus<I> where
I: Unpin,
impl<I> !UnwindSafe for CachedOnDiskCorpus<I>
Blanket Implementations
Mutably borrows from an owned value. Read more
type PreprendResult = Tail
type PreprendResult = Tail
The Resulting TupleList
, of an Prepend::prepend()
call,
including the prepended entry. Read more
type Output = T
type Output = T
Should always be Self