Microsoft SDK for Java

write4

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

write4(Object ptr, int ofs, int val)
write4(int ptr, int ofs, int val)
write4(int ptr, int val)

write4(Object ptr, int ofs, int val)

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

Syntax

public static native void write4(Object ptr, int ofs, int val);

Parameters

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

write4(int ptr, int ofs, int val)

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

Syntax

public static native void write4(int ptr, int ofs, int val);

Parameters

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

write4(int ptr, int val)

Writes an integer to the specified memory location.

Syntax

public static void write4(int ptr, int val);

Parameters

ptr The address in memory where the integer will be written.
val The value to write.

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