public abstract class FunctionPointer extends Pointer
Generatorcreate a native function type. A C++ function object gets instantiated for each call to
allocate()as well. That function object can be accessed by annotating any method parameter with
ByRef. By default, an actual function pointer gets passed
To use FunctionPointer, subclass and add a native method named
apply(), along with its return type and parameters, as well as the
native void allocate() method to support explicit allocation,
which is typically a requirement for callback functions.
|Modifier||Constructor and Description|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, init, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
protected FunctionPointer(Pointer p)
Copyright © 2017. All rights reserved.