Top Description Inners Constructors Methods
org.lwjgl.system.rpmalloc

public abstract Class RPMemoryUnmapCallback

extends Callback
implements RPMemoryUnmapCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.rpmalloc.RPMemoryUnmapCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.system.rpmalloc.RPMemoryUnmapCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be set to the RPMallocConfig struct.

Type


void (*invoke) (
    void *address,
    size_t size,
    size_t offset,
    int release
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
RPMemoryUnmapCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static RPMemoryUnmapCallback

Returns:

the new RPMemoryUnmapCallback
create
(long functionPointer)

Creates a RPMemoryUnmapCallback instance from the specified function pointer.

public static RPMemoryUnmapCallback
create(RPMemoryUnmapCallbackI instance)

Creates a RPMemoryUnmapCallback instance that delegates to the specified RPMemoryUnmapCallbackI instance.

public static RPMemoryUnmapCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

RPMemoryUnmapCallbackback to summary
protected RPMemoryUnmapCallback()
RPMemoryUnmapCallbackback to summary
pack-priv RPMemoryUnmapCallback(long functionPointer)

Method Detail

createback to summary
public static RPMemoryUnmapCallback create(long functionPointer)

Creates a RPMemoryUnmapCallback instance from the specified function pointer.

Returns:RPMemoryUnmapCallback

the new RPMemoryUnmapCallback

createback to summary
public static RPMemoryUnmapCallback create(RPMemoryUnmapCallbackI instance)

Creates a RPMemoryUnmapCallback instance that delegates to the specified RPMemoryUnmapCallbackI instance.

createSafeback to summary
public static RPMemoryUnmapCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.system.rpmalloc back to summary

private final Class RPMemoryUnmapCallback.Container

extends RPMemoryUnmapCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final RPMemoryUnmapCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, RPMemoryUnmapCallbackI delegate)

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the address to unmap
address
,
long
the size of the mapped pages, in bytes
size
,
long
the alignment offset
offset
,
boolean
the release flag
release
)

Implements org.lwjgl.system.rpmalloc.RPMemoryUnmapCallbackI.invoke.

Unmap the memory pages starting at address and spanning the given number of bytes.
Inherited from org.lwjgl.system.rpmalloc.RPMemoryUnmapCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final RPMemoryUnmapCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, RPMemoryUnmapCallbackI delegate)

Method Detail

invokeback to summary
public void invoke(long address, long size, long offset, boolean release)

Implements org.lwjgl.system.rpmalloc.RPMemoryUnmapCallbackI.invoke.

Doc from org.lwjgl.system.rpmalloc.RPMemoryUnmapCallbackI.invoke.

Unmap the memory pages starting at address and spanning the given number of bytes.

If release is set to non-zero, the unmap is for an entire span range as returned by a previous call to memory_map and that the entire range should be released. The release argument holds the size of the entire span range. If release is set to 0, the unmap is a partial decommit of a subset of the mapped memory range.

If you set a memory_unmap function, you must also set a memory_map function or else the default implementation will be used for both.

Parameters
address:long

the address to unmap

size:long

the size of the mapped pages, in bytes

offset:long

the alignment offset

release:boolean

the release flag

Annotations
@Override