Skip to main content

write_window

Function write_window 

Source
fn write_window(w: Result<(*mut u8, usize), i32>, buf: &[u8]) -> Result<(), i32>
Expand description

Copies buf into the mailbox at a place in_window found.

§Arguments

  • w - The lookup’s result.
  • buf - The bytes to write.

§Errors

EFAULT when buf runs past the end of the mailbox, or the error of the lookup.