The read2 method of the DllLib class contains the following signatures:
read2(Object ptr, int ofs)
read2(int ptr, int ofs)
read2(int ptr)
Reads two bytes of data from the memory location that is specified by a base address and an offset.
public static native short read2(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 two bytes of data from the memory location that is specified by a base address and an offset.
public static native short read2(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 a short integer from a specified memory location.
public static short read2(int ptr);
Returns the short integer that is read.
ptr | The address in memory where the short integer to be read is located. |