Microsoft SDK for Java

write1

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

write1(Object ptr, int ofs, byte val)
write1(int ptr, int ofs, byte val)
write1(int ptr, byte val)

write1(Object ptr, int ofs, byte val)

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

Syntax

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

Parameters

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

write1(int ptr, int ofs, byte val)

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

Syntax

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

Parameters

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

write1(int ptr, byte val)

Writes a byte to the specified memory location.

Syntax

public static void write1(int ptr, byte val);

Parameters

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

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