Ported the raw memory APIs.