|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.apple.mrj.jdirect.GenericPointer
GenericPointer is the base class for a platform dependent Pointer. No range checking is performed on this memory.
Field Summary | |
protected int |
pointer
The data for this Data is stored in the MacOS heap. |
Constructor Summary | |
GenericPointer(int pointer)
Construct a GenericPointer which wraps arbitrary platform memory |
Method Summary | |
boolean |
equals(Object anObject)
Returns true if both java objects reference the same MacOS heap pointer |
boolean |
getBooleanAt(int offset)
|
byte |
getByteAt(int offset)
|
byte[] |
getBytesAt(int byteOffset,
int byteCount)
Returns the byteCount bytes of data from byteOffset in this struct as a byte array. |
char |
getCharAt(int offset)
|
double |
getDoubleAt(int offset)
|
float |
getFloatAt(int offset)
|
int |
getIntAt(int offset)
|
long |
getLongAt(int offset)
|
int |
getPointer()
Returns the pointer held by the PointerObject. |
short |
getShortAt(int offset)
|
void |
setBooleanAt(int offset,
boolean value)
|
void |
setByteAt(int offset,
byte value)
|
void |
setBytesAt(int byteOffset,
byte[] source)
Copies the byteCount bytes of data to byteOffset in this struct from a byte array. |
void |
setCharAt(int offset,
char value)
|
void |
setDoubleAt(int offset,
double value)
|
void |
setFloatAt(int offset,
float value)
|
void |
setIntAt(int offset,
int value)
|
void |
setLongAt(int offset,
long value)
|
void |
setShortAt(int offset,
short value)
|
void |
setStructAt(int byteOffset,
Struct src)
Sets the data in a range of this from another Struct |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int pointer
Constructor Detail |
public GenericPointer(int pointer)
pointer
- a MacOS memory pointerMethod Detail |
public final boolean getBooleanAt(int offset)
public final byte getByteAt(int offset)
public final char getCharAt(int offset)
public final short getShortAt(int offset)
public final int getIntAt(int offset)
public final long getLongAt(int offset)
public final float getFloatAt(int offset)
public final double getDoubleAt(int offset)
public final void setBooleanAt(int offset, boolean value)
public final void setByteAt(int offset, byte value)
public final void setCharAt(int offset, char value)
public final void setShortAt(int offset, short value)
public final void setIntAt(int offset, int value)
public final void setLongAt(int offset, long value)
public final void setFloatAt(int offset, float value)
public final void setDoubleAt(int offset, double value)
public void setBytesAt(int byteOffset, byte[] source)
public void setStructAt(int byteOffset, Struct src)
public byte[] getBytesAt(int byteOffset, int byteCount)
public final int getPointer()
public boolean equals(Object anObject)
equals
in class Object
Object.equals(java.lang.Object)
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.