rustyshade/src/unsafe_utils/writes.rs

5 lines
No EOL
229 B
Rust

/// Write the given dword to any arbitrary memory location. This is an inherently unsafe operation; hence the function is unsafe
pub unsafe fn write_dword(dword: u16, at: usize) {
let ptr = at as *mut u16;
*ptr = dword;
}