(&mut self, addr: u64)
| 84 | self.back.clear(); |
| 85 | self.back.extend_from_slice(&bytes[split..]); |
| 86 | } |
| 87 | |
| 88 | /// Drop the pixel planes (control state stays), shrinking a stored snapshot. |
| 89 | pub fn strip_planes(&mut self) { |
| 90 | self.front = Vec::new(); |
| 91 | self.back = Vec::new(); |
| 92 | } |
| 93 | |
| 94 | // The buffer the guest currently draws into and reads from. |
| 95 | fn draw_buffer(&mut self) -> &mut Vec<u8> { |
| 96 | if self.double_buffered { |
| 97 | &mut self.back |
| 98 | } else { |
| 99 | &mut self.front |
| 100 | } |
nothing calls this directly
no test coverage detected