You csmt just convert the libraries since the underlying systems are completely different, though Mac OS has some functions for rpm and wpm.
ReadProcessMemory() -> vm_read_overwrite()
WriteProcessMemory() -> vm_write()
I'm on mobile so I cant search for docs, but that's a start as far as searching goes.