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

public abstract Class OPEWriteFunc

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

Instances of this class may be set to the OpusEncCallbacks.

Type


int (*invoke) (
    void *user_data,
    unsigned char const *ptr,
    opus_int32 len
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static OPEWriteFunc

Returns:

the new OPEWriteFunc
create
(long functionPointer)

Creates a OPEWriteFunc instance from the specified function pointer.

public static OPEWriteFunc
create(OPEWriteFuncI instance)

Creates a OPEWriteFunc instance that delegates to the specified OPEWriteFuncI instance.

public static OPEWriteFunc
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

OPEWriteFuncback to summary
protected OPEWriteFunc()
OPEWriteFuncback to summary
pack-priv OPEWriteFunc(long functionPointer)

Method Detail

createback to summary
public static OPEWriteFunc create(long functionPointer)

Creates a OPEWriteFunc instance from the specified function pointer.

Returns:OPEWriteFunc

the new OPEWriteFunc

createback to summary
public static OPEWriteFunc create(OPEWriteFuncI instance)

Creates a OPEWriteFunc instance that delegates to the specified OPEWriteFuncI instance.

createSafeback to summary
public static OPEWriteFunc createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

private final Class OPEWriteFunc.Container

extends OPEWriteFunc
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final OPEWriteFuncI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public int
invoke(long
user-defined data passed to the callback
user_data
,
long
buffer to be written
ptr
,
int
number of bytes to be written
len
)

Implements org.lwjgl.util.opus.OPEWriteFuncI.invoke.

Called for writing a page.
Inherited from org.lwjgl.util.opus.OPEWriteFunc:
createcreatecreateSafe

Field Detail

delegateback to summary
private final OPEWriteFuncI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public int invoke(long user_data, long ptr, int len)

Implements org.lwjgl.util.opus.OPEWriteFuncI.invoke.

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

Called for writing a page.

Parameters
user_data:long

user-defined data passed to the callback

ptr:long

buffer to be written

len:int

number of bytes to be written

Returns:int

error code; 0: success, 1: failure

Annotations
@Override