Skip to content
nyfrk edited this page Aug 22, 2020 · 1 revision

READ_AT function

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.

Syntax

DWORD READ_AT(
	const void* src, 
	int offset
);

Parameters

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.

Return value

This function will return NULL if it could not copy the DWORD. Otherwise it will be the DWORD read from the specified source address.

Remarks

none

Requirements

Minimum API Level 1
Target Edition Any
Header S4ModApi.h
Library settlers4api.lib
DLL settlers4api.dll

See also

memset_s

memget_s

WRITE_AT

Clone this wiki locally