pub fn mutate_buffer_blob(ctx: &mut Context, rng: &mut RngType, val: &mut Value) -> bool {
    let ty = val.ty(ctx.target()).checked_as_buffer_blob();
    let r = ty.range().unwrap_or(0..=MAX_BLOB_LEN);
    let val = val.checked_as_data_mut();

    if *r.start() == 0 && *r.end() == 0 {
        debug_info!("mutate_buffer_blob: zero size buffer");
        return false;
    }

    #[allow(clippy::let_and_return)] // ignore warning in release build mode
    let mutated = if val.dir() == Dir::Out {
        let new_size = mutate_blob_len(rng, val.size, r);
        debug_info!("mutate_buffer_blob(size): {} -> {}", val.size, new_size);
        let mutated = new_size != val.size;
        val.size = new_size;
        mutated
    } else {
        do_mutate_blob(ctx, rng, &mut val.data, r)
    };

    mutated
}
/// Mutate a buffer blob value.
Mutate a buffer blob value.
Mutate a buffer blob value .
pub fn mutate_buffer_blob(ctx: &mut Context, rng: &mut RngType, val: &mut Value) -> bool {
    let ty = val.ty(ctx.target()).checked_as_buffer_blob();
    let r = ty.range().unwrap_or(0..=MAX_BLOB_LEN);
    let val = val.checked_as_data_mut();
    if *r.start() == 0 && *r.end() == 0 {
        debug_info!("mutate_buffer_blob: zero size buffer");
        return false;
    }
    #[allow(clippy::let_and_return)] // ignore warning in release build mode
    let mutated = if val.dir() == Dir::Out {
        let new_size = mutate_blob_len(rng, val.size, r);
        debug_info!("mutate_buffer_blob(size): {} -> {}", val.size, new_size);
        let mutated = new_size != val.size;
        val.size = new_size;
        mutated
    } else {
        do_mutate_blob(ctx, rng, &mut val.data, r)
    };
    mutated
}
pub fn mutate_buffer_blob ( ctx : & mut Context , rng : & mut RngType , val : & mut Value ) -> bool { let ty = val . ty ( ctx . target ( ) ) . checked_as_buffer_blob ( ) ; let r = ty . range ( ) . unwrap_or ( 0 ..= MAX_BLOB_LEN ) ; let val = val . checked_as_data_mut ( ) ; if * r . start ( ) == 0 && * r . end ( ) == 0 { debug_info ! ( " " ) ; return false ; } # [ allow ( clippy let_and_return ) ] // ignore warning in release build mode let mutated = if val . dir ( ) == Dir :: Out { let new_size = mutate_blob_len ( rng , val . size , r ) ; debug_info ! ( " " val size new_size ) ; let mutated = new_size != val . size ; val . size = new_size ; mutated } else { do_mutate_blob ( ctx , rng , & mut val . data , r ) } ; mutated }
Mutate a buffer blob value.
Mutate a buffer blob value .
ctx
&mut Context
rng
&mut RngType
val
&mut Value
ctx
&mut Context
rng
&mut RngType
val
&mut Value