Class ZSTDAllocFunction

java.lang.Object
org.lwjgl.system.Callback
org.lwjgl.util.zstd.ZSTDAllocFunction
All Implemented Interfaces:
AutoCloseable, CallbackI, NativeResource, Pointer, ZSTDAllocFunctionI

public abstract class ZSTDAllocFunction extends Callback implements ZSTDAllocFunctionI
Callback function: ZSTD_allocFunction
  • Method Details

    • create

      public static ZSTDAllocFunction create(long functionPointer)
      Creates a ZSTDAllocFunction instance from the specified function pointer.
      Returns:
      the new ZSTDAllocFunction
    • createSafe

      public static @Nullable ZSTDAllocFunction createSafe(long functionPointer)
      Like create, but returns null if functionPointer is NULL.
    • create

      public static ZSTDAllocFunction create(ZSTDAllocFunctionI instance)
      Creates a ZSTDAllocFunction instance that delegates to the specified ZSTDAllocFunctionI instance.