|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.Parameter com.jniwrapper.Pointer.Void
public static class Pointer.Void
Represents a void *
.
This pointer can be used for parameters where the referenced object type/size
is not known or is of no interest for the client.
Field Summary |
---|
Fields inherited from class com.jniwrapper.Parameter |
---|
LICENSE_TYPE, V |
Constructor Summary | |
---|---|
Pointer.Void()
Constructs a new null pointer. |
|
Pointer.Void(long value)
Constructs a new void pointer that has the given value. |
|
Pointer.Void(Pointer.Void that)
|
Method Summary | |
---|---|
Function |
asFunction()
Converts this poiter to a function. |
Function |
asFunction(byte callingConvention)
Converts this poiter to a function. |
void |
asTypedPointer(Pointer target)
Deprecated. use castTo(Pointer) method instead |
void |
castTo(Pointer.Void target)
Casts this pointer to the another void pointer. |
void |
castTo(Pointer target)
Casts this pointer to the given typed pointer. |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
Compares this Parameter object to a given object. |
java.lang.String |
getDebugInfo()
Converts this pointer to string representation. |
int |
getLength()
Returns the length of the parameter in memory. |
long |
getValue()
Returns handle value of this object. |
int |
hashCode()
|
boolean |
isNull()
Tests if this pointer is null. |
void |
read(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Reads this parameter from a specified data source. |
void |
setValue(long value)
Sets handle value of this pointer. |
java.lang.String |
toString()
|
void |
write(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Writes this parameter to a specified data source. |
Methods inherited from class com.jniwrapper.Parameter |
---|
acceptIOPerformer, asReturnValue, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Pointer.Void()
public Pointer.Void(long value)
(HWND)-1
.
public Pointer.Void(Pointer.Void that)
Method Detail |
---|
public int getLength()
Parameter
sizeof()
operator.
getLength
in class Parameter
public void write(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameter
write
in class Parameter
MemoryAccessViolationException
public void read(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameter
read
in class Parameter
MemoryAccessViolationException
public java.lang.Object clone()
clone
in class Parameter
public void setValue(long value)
setValue
in interface IntegerParameter
public long getValue()
getValue
in interface IntegerParameter
public boolean isNull()
isNull
in interface PointerParameter
public java.lang.String getDebugInfo()
getDebugInfo
in class Parameter
public Function asFunction()
public Function asFunction(byte callingConvention)
callingConvention
- calling convention.public void asTypedPointer(Pointer target)
castTo(Pointer)
method instead
target
- void pointer.public void castTo(Pointer target)
target
- the target typed pointerpublic void castTo(Pointer.Void target)
target
- the target void pointerpublic boolean equals(java.lang.Object obj)
Parameter
Parameter
object to a given object. Two
Parameter
objects are considered equal if their byte
representations are equal and they are of the same type. Subclasses may
override this method as appropriate.
equals
in class Parameter
obj
- a value to compare this object to.
true
if two objects are equal.public int hashCode()
hashCode
in class Parameter
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |