Queues raw bytes for the guest to read and signals the interrupt if the line status would change.
(&mut self, c: &[u8])
| 170 | /// Queues raw bytes for the guest to read and signals the interrupt if the line status would |
| 171 | /// change. |
| 172 | pub fn queue_input_bytes(&mut self, c: &[u8]) -> Result<()> { |
| 173 | if !self.is_loop() { |
| 174 | self.in_buffer.extend(c); |
| 175 | self.recv_data()?; |
| 176 | } |
| 177 | Ok(()) |
| 178 | } |
| 179 | |
| 180 | pub fn flush_output(&mut self) -> result::Result<(), io::Error> { |
| 181 | if let Some(out) = self.out.as_mut() { |