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

Method read_byte

crates/virtual-machine/src/devices/framebuffer.rs:86–97  ·  view source on GitHub ↗
(&mut self, addr: u64)

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 1

draw_bufferMethod · 0.80

Tested by

no test coverage detected