MCPcopy Create free account
hub / github.com/Ruddle/Fomos / update

Method update

bootloader/kernel/src/framebuffer.rs:215–219  ·  view source on GitHub ↗
(&mut self, vec: *mut RGBA, w: usize, h: usize)

Source from the content-addressed store, hash-verified

213 }
214
215 pub fn update(&mut self, vec: *mut RGBA, w: usize, h: usize) {
216 self.pixels = unsafe { Vec::from_raw_parts(vec, h * w, w * h) };
217 self.w = w;
218 self.h = h;
219 }
220
221 pub fn share(&mut self) -> FBShare {
222 FBShare {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected