Microsoft SDK for Java

read1

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

read1(Object ptr, int ofs)
read1(int ptr, int ofs)
read1(int ptr)

read1(Object ptr, int ofs)

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

Syntax

public static native byte read1(Object ptr, int ofs);

Return Value

Returns the byte that is read.

Parameters

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

read1(int ptr, int ofs)

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

Syntax

public static native byte read1(int ptr, int ofs);

Return Value

Returns the byte that is read.

Parameters

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

read1(int ptr)

Reads a byte from a specified memory location.

Syntax

public static byte read1(int ptr);

Return Value

Returns the byte that is read.

Parameters

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

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