Simplify `write_value_to_ptr`
Simplify `write_value_to_ptr`

GBGamer/rust,GBGamer/rust,aidancully/rust,rust-lang/miri,graydon/rust,GBGamer/rust,rust-lang/miri,GBGamer/rust,rust-lang/miri,graydon/rust,GBGamer/rust,graydon/rust,GBGamer/rust,aidancully/rust,graydon/rust,rust-lang/miri,aidancully/rust,tsion/miri,graydon/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,graydon/rust,aidancully/rust,aidancully/rust