MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / present

Method present

crates/virtual-machine/src/devices/framebuffer.rs:78–82  ·  view source on GitHub ↗

Publish the back buffer to the front (no-op when single-buffered).

(&mut self)

Source from the content-addressed store, hash-verified

76 buf
77 }
78
79 /// Replace both pixel planes from a [`plane_image`](Self::plane_image) buffer.
80 pub fn load_plane_image(&mut self, bytes: &[u8]) {
81 let split = bytes.len() / 2;
82 self.front.clear();
83 self.front.extend_from_slice(&bytes[..split]);
84 self.back.clear();
85 self.back.extend_from_slice(&bytes[split..]);

Callers 1

write_wordMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected