public static class Pointer.Const extends Pointer
Pointer.Const, Pointer.OutOnly, Pointer.Void
POINTER_LENGTH
LICENSE_TYPE, V
Constructor and Description |
---|
Const(java.lang.Class parameterClass) |
Const(Parameter ref)
Constructs a new pointer to a given object.
|
Const(Parameter ref,
boolean isNull)
Constructs a new pointer to a given object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
pop(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Default implementation that does nothing because most primitive types do
nothing on pop.
|
void |
push(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Writes a parameter to a function stacks.
|
void |
write(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Writes this parameter to a specified data source.
|
acceptIOPerformer, asTypedPointer, asVoidPointer, castTo, castTo, checkMemHandleLength, equals, getDebugInfo, getLength, getParameterClass, getPointerHandle, getReferencedObject, isNull, read, read, readPointer, readReferencedObject, setExternalSource, setNull, setReferencedObject, setReferencedObject, write, writePointer, writeReferencedObject
asReturnValue, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, hashCode, indent, read, setDataBuffer, toByteArray
public Const(Parameter ref)
ref
- referenced object.public Const(Parameter ref, boolean isNull)
ref
- referenced objectisNull
- if true
the constructed pointer is null.public Const(java.lang.Class parameterClass)
public void write(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameter
write
in class Pointer
MemoryAccessViolationException
public void push(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameter
push
in class Pointer
MemoryAccessViolationException
public void pop(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameter
pop
in class Pointer
MemoryAccessViolationException