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

public abstract Class OPCloseFunc

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

Instances of this class may be set to OpusFileCallbacks.

Type


int (*invoke) (
    void *_stream
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static OPCloseFunc

Returns:

the new OPCloseFunc
create
(long functionPointer)

Creates a OPCloseFunc instance from the specified function pointer.

public static OPCloseFunc
create(OPCloseFuncI instance)

Creates a OPCloseFunc instance that delegates to the specified OPCloseFuncI instance.

public static OPCloseFunc
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

OPCloseFuncback to summary
protected OPCloseFunc()
OPCloseFuncback to summary
pack-priv OPCloseFunc(long functionPointer)

Method Detail

createback to summary
public static OPCloseFunc create(long functionPointer)

Creates a OPCloseFunc instance from the specified function pointer.

Returns:OPCloseFunc

the new OPCloseFunc

createback to summary
public static OPCloseFunc create(OPCloseFuncI instance)

Creates a OPCloseFunc instance that delegates to the specified OPCloseFuncI instance.

createSafeback to summary
public static OPCloseFunc createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

private final Class OPCloseFunc.Container

extends OPCloseFunc
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final OPCloseFuncI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public int
invoke(long _stream)

Implements org.lwjgl.util.opus.OPCloseFuncI.invoke.

Closes the underlying stream.
Inherited from org.lwjgl.util.opus.OPCloseFunc:
createcreatecreateSafe

Field Detail

delegateback to summary
private final OPCloseFuncI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public int invoke(long _stream)

Implements org.lwjgl.util.opus.OPCloseFuncI.invoke.

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

Closes the underlying stream.

Returns:int

0: Success. EOF: An error occurred. errno need not be set.}

Annotations
@Override