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

public abstract Class OPSeekFunc

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

Instances of this class may be set to OpusFileCallbacks.

Type


int (*invoke) (
    void *_stream,
    long long _offset,
    int _whence
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static OPSeekFunc

Returns:

the new OPSeekFunc
create
(long functionPointer)

Creates a OPSeekFunc instance from the specified function pointer.

public static OPSeekFunc
create(OPSeekFuncI instance)

Creates a OPSeekFunc instance that delegates to the specified OPSeekFuncI instance.

public static OPSeekFunc
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

OPSeekFuncback to summary
protected OPSeekFunc()
OPSeekFuncback to summary
pack-priv OPSeekFunc(long functionPointer)

Method Detail

createback to summary
public static OPSeekFunc create(long functionPointer)

Creates a OPSeekFunc instance from the specified function pointer.

Returns:OPSeekFunc

the new OPSeekFunc

createback to summary
public static OPSeekFunc create(OPSeekFuncI instance)

Creates a OPSeekFunc instance that delegates to the specified OPSeekFuncI instance.

createSafeback to summary
public static OPSeekFunc createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

private final Class OPSeekFunc.Container

extends OPSeekFunc
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final OPSeekFuncI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public int
invoke(long _stream, long _offset, int _whence)

Implements org.lwjgl.util.opus.OPSeekFuncI.invoke.

Sets the position indicator for _stream.
Inherited from org.lwjgl.util.opus.OPSeekFunc:
createcreatecreateSafe

Field Detail

delegateback to summary
private final OPSeekFuncI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public int invoke(long _stream, long _offset, int _whence)

Implements org.lwjgl.util.opus.OPSeekFuncI.invoke.

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

Sets the position indicator for _stream.

The new position, measured in bytes, is obtained by adding _offset bytes to the position specified by _whence. If _whence is set to SEEK_SET, SEEK_CUR, or SEEK_END, the offset is relative to the start of the stream, the current position indicator, or end-of-file, respectively.

Returns:int

0: Success. -1: Seeking is not supported or an error occurred. errno need not be set.

Annotations
@Override