RPMallocConfig struct.
void * (*invoke) (
size_t size,
size_t *offset
)
| Modifier and Type | Method and Description |
|---|---|
| public default void | callback(long
a pointer to the memory used for the function's return value.
ret, long If the function is declared as returning Otherwise, the callback must fill the object to which this points, following the same special promotion behavior as
a vector of pointers to memory holding the arguments to the function args)Implements org. |
| public default FFICIF | getCallInterface()
Implements org. |
| public long | invoke(long
the number of bytes to map size, long the alignment offset offset)Map memory pages for the given number of bytes. |
| CIF | back to summary |
|---|---|
| public static final FFICIF CIF | |
| callback | back to summary |
|---|---|
| public default void callback(long ret, long args) Implements org. Doc from org. The Java method that will be called from native code when the native callback function is invoked.
| |
| getCallInterface | back to summary |
|---|---|
| public default FFICIF getCallInterface() Implements org. Doc from org. Returns the libffi Call Interface for this callback function. [INTERNAL API] | |
| invoke | back to summary |
|---|---|
| public long invoke(long size, long offset) Map memory pages for the given number of bytes. The returned address MUST be aligned to the rpmalloc span size, which will always be a power of two. Optionally the function can store an alignment
offset in the offset variable in case it performs alignment and the returned pointer is offset from the actual start of the memory region due to this
alignment. The alignment offset will be passed to the memory unmap function. The alignment offset MUST NOT be larger than 65535 (storable in an
If you set a
| |