|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cinvoke.Ptr
Used to send or read values the size of a C pointer type. The size of pointer values in C can vary with the current native platform. Declaring native interfaces with this type will always marshal the corresponding values as the correct size.
Constructor Summary | |
Ptr(long val)
Initializes a Ptr instance. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
long |
longValue()
Returns a marshaled value. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Ptr(long val)
val
- The value to marshal. Note that not all the bits in the long
value are guaranteed to be used by the called platform. Directly using
this constructor is discouraged. In particular, the C standard does
not guarantee an integer representation for pointer values, so using
this constructor may be undefined. The only integer value which is
always defined is 0, which is equivalent to the NULL pointer. Otherwise,
you should only pass Ptr values to C functions which you have received
as return values from other C functions.Method Detail |
public long longValue()
public boolean equals(java.lang.Object o)
public int hashCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |