/// reads n bits from this Iterator, packing the result into a single u16,
/// such that the first bit read becomes the MSB of the returned value
reads n bits from this Iterator, packing the result into a single u16,
such that the first bit read becomes the MSB of the returned value
reads n bits from this Iterator packing the result into a single u16 such that the first bit read becomes the MSB of the returned value
pub fn read_n(&mut self, bit_count:u4) -> Option<u16> {
		let mut retval:u16 = 0;
		for _ in u4ZeroToRangeIter::new(bit_count) {
			retval <<= 1;
			match self.next() {
				Some(x) => retval += u16::from(x),
				None => return None
			}
		}
		Some(retval)
	}
pub fn read_n ( & mut self , bit_count : u4 ) -> Option < u16 > { let mut retval : u16 = 0 ; for _ in u4ZeroToRangeIter :: new ( bit_count ) { retval <<= 1 ; match self . next ( ) { Some ( x ) => retval += u16 :: from ( x ) , None => return None } } Some ( retval ) }
reads n bits from this Iterator, packing the result into a single u16,
such that the first bit read becomes the MSB of the returned value
reads n bits from this Iterator packing the result into a single u16 such that the first bit read becomes the MSB of the returned value
&mut self
<not_specific>
bit_count
u4
<not_specific>