Microsoft SDK for Java

read4

The read4 method of the DllLib class contains the following signatures:

read4(Object ptr, int ofs)
read4(int ptr, int ofs)
read4(int ptr)

read4(Object ptr, int ofs)

Reads four bytes of data from the memory location that is specified by a base address and an offset.

Syntax

public static native int read4(Object ptr, int ofs);

Return Value

Returns the bytes that are read.

Parameters

ptr The base address to write to.
ofs The offset from the base address.

read4(int ptr, int ofs)

Reads four bytes of data from the memory location that is specified by a base address and an offset.

Syntax

public static native int read4(int ptr, int ofs);

Return Value

Returns the bytes that are read.

Parameters

ptr The base address to write to.
ofs The offset from the base address.

read4(int ptr)

Reads an integer from a specified memory location.

Syntax

public static int read4(int ptr);

Return Value

Returns the integer that is read.

Parameters

ptr The address in memory where the integer to be read is located.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.