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, writepublic Void()
public Void(long value)
(HWND)-1.public Void(Pointer.Void that)
public int getLength()
Parametersizeof() operator.public void write(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameterwrite in class ParameterMemoryAccessViolationExceptionpublic void read(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameterread in class ParameterMemoryAccessViolationExceptionpublic void setValue(long value)
setValue in interface IntegerParameterpublic long getValue()
getValue in interface IntegerParameterpublic boolean isNull()
isNull in interface PointerParameterpublic java.lang.String getDebugInfo()
getDebugInfo in class Parameterpublic 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)
ParameterParameter 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