The read4 method of the DllLib class contains the following signatures:
read4(Object ptr, int ofs)
read4(int ptr, int ofs)
read4(int ptr)
Reads four bytes of data from the memory location that is specified by a base address and an offset.
public static native int read4(Object ptr, int ofs);
Returns the bytes that are read.
ptr | The base address to write to. |
ofs | The offset from the base address. |
Reads four bytes of data from the memory location that is specified by a base address and an offset.
public static native int read4(int ptr, int ofs);
Returns the bytes that are read.
ptr | The base address to write to. |
ofs | The offset from the base address. |
Reads an integer from a specified memory location.
public static int read4(int ptr);
Returns the integer that is read.
ptr | The address in memory where the integer to be read is located. |