pub fn find_tag(bitsting: &[u8]) -> usize {
    let mut length = bitsting.len() * 8;
    for x in bitsting.iter().rev() {
        if *x == 0 {
            length -= 8;
        } else {
            let mut skip = 1;
            let mut mask = 1;
            while (*x & mask) == 0 {
                skip += 1;
                mask <<= 1
            }
            length -= skip;
            break;
        }
    }
    length
}
/// Calculates data's lengt in bits with respect to completion tag
Calculates data's lengt in bits with respect to completion tag
Calculates data ' s lengt in bits with respect to completion tag
pub fn find_tag(bitsting: &[u8]) -> usize {
    let mut length = bitsting.len() * 8;
    for x in bitsting.iter().rev() {
        if *x == 0 {
            length -= 8;
        } else {
            let mut skip = 1;
            let mut mask = 1;
            while (*x & mask) == 0 {
                skip += 1;
                mask <<= 1
            }
            length -= skip;
            break;
        }
    }
    length
}
pub fn find_tag ( bitsting : & [ u8 ] ) -> usize { let mut length = bitsting . len ( ) * 8 ; for x in bitsting . iter ( ) . rev ( ) { if * x == 0 { length -= 8 ; } else { let mut skip = 1 ; let mut mask = 1 ; while ( * x & mask ) == 0 { skip += 1 ; mask <<= 1 } length -= skip ; break ; } } length }
Calculates data's lengt in bits with respect to completion tag
Calculates data ' s lengt in bits with respect to completion tag
bitsting
&[u8]
bitsting
&[u8]