-
Notifications
You must be signed in to change notification settings - Fork 5
READ_AT
nyfrk edited this page Aug 22, 2020
·
1 revision
Read a DWORD from memory. This function will not trip an exception if no memory is committed at the source address.
See memget_s if you need a safe multi byte read operation instead. See WRITE_AT if you need to write a DWORD to memory instead.
DWORD READ_AT(
const void* src,
int offset
);
src
The source from where the DWORD is copied from. Can be an invalid address. If this parameter is NULL READ_AT will return 0 (zero).
offset
An offset in bytes from the source. Set this to 0 if you do not need an offset.
This function will return NULL if it could not copy the DWORD. Otherwise it will be the DWORD read from the specified source address.
none
Minimum API Level | 1 |
Target Edition | Any |
Header | S4ModApi.h |
Library | settlers4api.lib |
DLL | settlers4api.dll |