pub fn bin_file_block_of_remove<Key>(key: &Key, integrity: &mut Option<Integrity>)
    -> Result<Vec<u8>, bincode2::Error>
where
    Key: Serialize
{
    let key_bin_data = bincode2::serialize(&key)?;
    let mut data = vec![REMOVE];
    data.extend_from_slice(&key_bin_data);
    post_process_file_bin_block(&mut data, integrity);
    let mut res = bin_block_len(data.len());
    res.extend_from_slice(&data);
    Ok(res)
}
/// Make data block with remove operation for write to file.
Make data block with remove operation for write to file.
Make data block with remove operation for write to file .
pub fn bin_file_block_of_remove<Key>(key: &Key, integrity: &mut Option<Integrity>)
    -> Result<Vec<u8>, bincode2::Error>
where
    Key: Serialize
{
    let key_bin_data = bincode2::serialize(&key)?;
    let mut data = vec![REMOVE];
    data.extend_from_slice(&key_bin_data);
    post_process_file_bin_block(&mut data, integrity);
    let mut res = bin_block_len(data.len());
    res.extend_from_slice(&data);
    Ok(res)
}
pub fn bin_file_block_of_remove < Key > ( key : & Key , integrity : & mut Option < Integrity > ) -> Result < Vec < u8 > , bincode2 :: Error > where Key : Serialize { let key_bin_data = bincode2 :: serialize ( & key ) ? ; let mut data = vec ! [ REMOVE ] ; data . extend_from_slice ( & key_bin_data ) ; post_process_file_bin_block ( & mut data , integrity ) ; let mut res = bin_block_len ( data . len ( ) ) ; res . extend_from_slice ( & data ) ; Ok ( res ) }
Make data block with remove operation for write to file.
Make data block with remove operation for write to file .
key
&Key
integrity
&mut Option<Integrity>
key
&Key
integrity
&mut Option<Integrity>