fn finalize_pending_input( decoder: &mut InputDecoder, input: &mut Vec<u8>, events: &mut Vec<DecodedInput>, )