Microsoft SDK for Java

write2

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

write2(Object ptr, int ofs, short val)
write2(int ptr, int ofs, short val)
write2(int ptr, short val)
write2(Object ptr, int ofs, char val)
write2(int ptr, int ofs, char val)
write2(int ptr, char val)

write2(Object ptr, int ofs, short val)

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

Syntax

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

Parameters

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

write2(int ptr, int ofs, short val)

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

Syntax

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

Parameters

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

write2(int ptr, short val)

Writes a short integer to the specified memory location.

Syntax

public static void write2(int ptr, short val);

Parameters

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

write2(Object ptr, int ofs, char val)

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

Syntax

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

Parameters

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

write2(int ptr, int ofs, char val)

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

Syntax

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

Parameters

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

write2(int ptr, char val)

Writes a character to the specified memory location.

Syntax

public static void write2(int ptr, char val);

Parameters

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

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