org.lwjgl.system.rpmalloc.RPMemoryOverwriteCallbackI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-rpmalloc Show documentation
Show all versions of lwjgl-rpmalloc Show documentation
A public domain cross platform lock free thread caching 16-byte aligned memory allocator implemented in C.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.system.rpmalloc;
import org.lwjgl.system.*;
import static org.lwjgl.system.dyncall.DynCallback.*;
/**
* Instances of this interface may be set to the {@link RPMallocConfig} struct.
*
* Type
*
*
* void (*) (
* void *address
* )
*/
@FunctionalInterface
@NativeType("void (*) (void *)")
public interface RPMemoryOverwriteCallbackI extends CallbackI.V {
String SIGNATURE = "(p)v";
@Override
default String getSignature() { return SIGNATURE; }
@Override
default void callback(long args) {
invoke(
dcbArgPointer(args)
);
}
/**
* Debug callback if memory guards are enabled. Called if a memory overwrite is detected before or after the allocated memory block.
*
* @param address the allocated block around which memory overwrite was detected
*/
void invoke(@NativeType("void *") long address);
}