Top Description Inners Constructors Methods
org.lwjgl.util.zstd

public abstract Class ZSTDAllocFunction

extends Callback
implements ZSTDAllocFunctionI
Class Inheritance
All Implemented Interfaces
org.lwjgl.util.zstd.ZSTDAllocFunctionI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.util.zstd.ZSTDAllocFunction.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the ZSTDCustomMem struct.

Type


void * (*invoke) (
    void *opaque,
    size_t size
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static ZSTDAllocFunction

Returns:

the new ZSTDAllocFunction
create
(long functionPointer)

Creates a ZSTDAllocFunction instance from the specified function pointer.

public static ZSTDAllocFunction
create(ZSTDAllocFunctionI instance)

Creates a ZSTDAllocFunction instance that delegates to the specified ZSTDAllocFunctionI instance.

public static ZSTDAllocFunction
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

ZSTDAllocFunctionback to summary
protected ZSTDAllocFunction()
ZSTDAllocFunctionback to summary
pack-priv ZSTDAllocFunction(long functionPointer)

Method Detail

createback to summary
public static ZSTDAllocFunction create(long functionPointer)

Creates a ZSTDAllocFunction instance from the specified function pointer.

Returns:ZSTDAllocFunction

the new ZSTDAllocFunction

createback to summary
public static ZSTDAllocFunction create(ZSTDAllocFunctionI instance)

Creates a ZSTDAllocFunction instance that delegates to the specified ZSTDAllocFunctionI instance.

createSafeback to summary
public static ZSTDAllocFunction createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.util.zstd back to summary

private final Class ZSTDAllocFunction.Container

extends ZSTDAllocFunction
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ZSTDAllocFunctionI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public long
invoke(long opaque, long size)

Implements org.lwjgl.util.zstd.ZSTDAllocFunctionI.invoke.

Inherited from org.lwjgl.util.zstd.ZSTDAllocFunction:
createcreatecreateSafe

Field Detail

delegateback to summary
private final ZSTDAllocFunctionI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public long invoke(long opaque, long size)

Implements org.lwjgl.util.zstd.ZSTDAllocFunctionI.invoke.

Annotations
@Override