/// Mutate a buffer filename value.
Mutate a buffer filename value.
Mutate a buffer filename value .
pub fn mutate_buffer_filename(ctx: &mut Context, rng: &mut RngType, val: &mut Value) -> bool {
    let ty = val.ty(ctx.target);
    let _old_size = val.size(ctx.target);
    if rng.gen_ratio(99, 100) {
        *val = gen_buffer_filename(ctx, rng, ty, val.dir());
    } else {
        let inner_val = val.checked_as_data_mut();
        do_mutate_blob(ctx, rng, &mut inner_val.data, 0..=UNIX_PATH_MAX);
    }
    debug_info!(
        "mutate_buffer_filename: {} -> {}",
        _old_size,
        val.size(ctx.target)
    );
    true
}
pub fn mutate_buffer_filename ( ctx : & mut Context , rng : & mut RngType , val : & mut Value ) -> bool { let ty = val . ty ( ctx . target ) ; let _old_size = val . size ( ctx . target ) ; if rng . gen_ratio ( 99 , 100 ) { * val = gen_buffer_filename ( ctx , rng , ty , val . dir ( ) ) ; } else { let inner_val = val . checked_as_data_mut ( ) ; do_mutate_blob ( ctx , rng , & mut inner_val . data , 0 ..= UNIX_PATH_MAX ) ; } debug_info ! ( " " _old_size val size ( ctx target ) ) ; true }
Mutate a buffer filename value.
Mutate a buffer filename value .
ctx
&mut Context
rng
&mut RngType
val
&mut Value