poke package:derive-storable
Write the given value to the given memory location. Alignment
restrictions might apply; see
peek.
Write a value to a memory location given by a base address and offset.
The following equality holds:
pokeByteOff addr off x = poke (addr `plusPtr` off) x
Write a value to a memory area regarded as an array of values of the
same kind. The following equality holds:
pokeElemOff addr idx x =
poke (addr `plusPtr` (idx * sizeOf x)) x
Write the variable to a pointer.
Write the variable to a pointer.
Write the variable under the pointer, with offset.