public static class Pointer.Void extends Parameter implements IntegerParameter, PointerParameter
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.LICENSE_TYPE, V
Constructor and Description |
---|
Void()
Constructs a new null pointer.
|
Void(long value)
Constructs a new void pointer that has the given value.
|
Void(Pointer.Void that) |
Modifier and Type | Method and Description |
---|---|
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.
|
acceptIOPerformer, asReturnValue, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write
public Void()
public Void(long value)
(HWND)-1
.public Void(Pointer.Void that)
public int getLength()
Parameter
sizeof()
operator.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 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 insteadtarget
- 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.public java.lang.String toString()
toString
in class java.lang.Object