write_to_mem

Function write_to_mem 

Source
pub fn write_to_mem<T>(shm: &mut UnixShMem, value: T, offset: usize)
where T: Copy,
Expand description

Write a value of type T to shared memory at the specified offset.

§Arguments

  • shm - Mutable reference to the Unix shared memory.
  • value - The value to write.
  • offset - Offset in bytes from the start of the shared memory.

§Type Parameters

  • T - The type of value to write, which must be Copy.