Microsoft SDK for Java

read2

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

read2(Object ptr, int ofs)
read2(int ptr, int ofs)
read2(int ptr)

read2(Object ptr, int ofs)

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

Syntax

public static native short read2(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.

read2(int ptr, int ofs)

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

Sytnax

public static native short read2(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.

read2(int ptr)

Reads a short integer from a specified memory location.

Syntax

public static short read2(int ptr);

Return Value

Returns the short integer that is read.

Parameters

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

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