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

public abstract Class OPECloseFunc

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

Instances of this class may be set to the OpusEncCallbacks.

Type


int (*invoke) (
    void *user_data
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static OPECloseFunc

Returns:

the new OPECloseFunc
create
(long functionPointer)

Creates a OPECloseFunc instance from the specified function pointer.

public static OPECloseFunc
create(OPECloseFuncI instance)

Creates a OPECloseFunc instance that delegates to the specified OPECloseFuncI instance.

public static OPECloseFunc
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

OPECloseFuncback to summary
protected OPECloseFunc()
OPECloseFuncback to summary
pack-priv OPECloseFunc(long functionPointer)

Method Detail

createback to summary
public static OPECloseFunc create(long functionPointer)

Creates a OPECloseFunc instance from the specified function pointer.

Returns:OPECloseFunc

the new OPECloseFunc

createback to summary
public static OPECloseFunc create(OPECloseFuncI instance)

Creates a OPECloseFunc instance that delegates to the specified OPECloseFuncI instance.

createSafeback to summary
public static OPECloseFunc createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

private final Class OPECloseFunc.Container

extends OPECloseFunc
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final OPECloseFuncI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public int
invoke(long
user-defined data passed to the callback
user_data
)

Implements org.lwjgl.util.opus.OPECloseFuncI.invoke.

Called for closing a stream.
Inherited from org.lwjgl.util.opus.OPECloseFunc:
createcreatecreateSafe

Field Detail

delegateback to summary
private final OPECloseFuncI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public int invoke(long user_data)

Implements org.lwjgl.util.opus.OPECloseFuncI.invoke.

Doc from org.lwjgl.util.opus.OPECloseFuncI.invoke.

Called for closing a stream.

Parameters
user_data:long

user-defined data passed to the callback

Returns:int

error code; 0: success, 1: failure

Annotations
@Override