Poke (write to adress) function in Retroarch?

I was wondering… Sense there is cheats in retroarch, and it seems to lock values to the value set when the cheat was saved, aaaaand there is a way to peek in an adress, is there a way to write custom values into a program’s adresses? I can’t seem to find one…