/// Merge and issue all blob Io descriptors.
Merge and issue all blob Io descriptors.
Merge and issue all blob Io descriptors .
pub fn merge_and_issue(bios: &[BlobIoDesc], max_size: usize, op: F) {
        if !bios.is_empty() {
            let mut index = 1;
            let mut state = BlobIoMergeState::new(&bios[0], op);
            for cur_bio in &bios[1..] {
                if !cur_bio.is_continuous(&bios[index - 1]) || state.size() >= max_size {
                    state.issue();
                }
                state.push(cur_bio);
                index += 1
            }
            state.issue();
        }
    }
pub fn merge_and_issue ( bios : & [ BlobIoDesc ] , max_size : usize , op : F ) { if ! bios . is_empty ( ) { let mut index = 1 ; let mut state = BlobIoMergeState :: new ( & bios [ 0 ] , op ) ; for cur_bio in & bios [ 1 .. ] { if ! cur_bio . is_continuous ( & bios [ index - 1 ] ) || state . size ( ) >= max_size { state . issue ( ) ; } state . push ( cur_bio ) ; index += 1 } state . issue ( ) ; } }
Merge and issue all blob Io descriptors.
Merge and issue all blob Io descriptors .
bios
&[BlobIoDesc]
max_size
usize
op
F