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

public abstract Class OPEPacketFunc

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

Instances of this class may be set with SET_PACKET_CALLBACK_REQUEST.

Type


void (*invoke) (
    void *user_data,
    unsigned char const *packet_ptr,
    opus_int32 packet_len,
    opus_uint32 flags
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static OPEPacketFunc

Returns:

the new OPEPacketFunc
create
(long functionPointer)

Creates a OPEPacketFunc instance from the specified function pointer.

public static OPEPacketFunc
create(OPEPacketFuncI instance)

Creates a OPEPacketFunc instance that delegates to the specified OPEPacketFuncI instance.

public static OPEPacketFunc
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

OPEPacketFuncback to summary
protected OPEPacketFunc()
OPEPacketFuncback to summary
pack-priv OPEPacketFunc(long functionPointer)

Method Detail

createback to summary
public static OPEPacketFunc create(long functionPointer)

Creates a OPEPacketFunc instance from the specified function pointer.

Returns:OPEPacketFunc

the new OPEPacketFunc

createback to summary
public static OPEPacketFunc create(OPEPacketFuncI instance)

Creates a OPEPacketFunc instance that delegates to the specified OPEPacketFuncI instance.

createSafeback to summary
public static OPEPacketFunc createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

private final Class OPEPacketFunc.Container

extends OPEPacketFunc
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final OPEPacketFuncI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
user-defined data passed to the callback
user_data
,
long
packet data
packet_ptr
,
int
number of bytes in the packet
packet_len
,
int
optional flags (none defined for now so zero)
flags
)

Implements org.lwjgl.util.opus.OPEPacketFuncI.invoke.

Called on every packet encoded (including header).
Inherited from org.lwjgl.util.opus.OPEPacketFunc:
createcreatecreateSafe

Field Detail

delegateback to summary
private final OPEPacketFuncI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long user_data, long packet_ptr, int packet_len, int flags)

Implements org.lwjgl.util.opus.OPEPacketFuncI.invoke.

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

Called on every packet encoded (including header).

Parameters
user_data:long

user-defined data passed to the callback

packet_ptr:long

packet data

packet_len:int

number of bytes in the packet

flags:int

optional flags (none defined for now so zero)

Annotations
@Override