fn read_bits( bit_read_pos: &mut usize, buffer: &[u8], num_bits: usize ) -> Result<u32, SpsParsingError>