Top Description Inners Constructors Methods
org.lwjgl.bgfx

public abstract Class BGFXCacheReadCallback

extends Callback
implements BGFXCacheReadCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.bgfx.BGFXCacheReadCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.bgfx.BGFXCacheReadCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Reads cached item.

Type


bool (*invoke) (
    bgfx_callback_interface_t *_this,
    uint64_t _id,
    void *_data,
    uint32_t _size
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static BGFXCacheReadCallback

Returns:

the new BGFXCacheReadCallback
create
(long functionPointer)

Creates a BGFXCacheReadCallback instance from the specified function pointer.

public static BGFXCacheReadCallback
create(BGFXCacheReadCallbackI instance)

Creates a BGFXCacheReadCallback instance that delegates to the specified BGFXCacheReadCallbackI instance.

public static BGFXCacheReadCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

BGFXCacheReadCallbackback to summary
protected BGFXCacheReadCallback()
BGFXCacheReadCallbackback to summary
pack-priv BGFXCacheReadCallback(long functionPointer)

Method Detail

createback to summary
public static BGFXCacheReadCallback create(long functionPointer)

Creates a BGFXCacheReadCallback instance from the specified function pointer.

Returns:BGFXCacheReadCallback

the new BGFXCacheReadCallback

createback to summary
public static BGFXCacheReadCallback create(BGFXCacheReadCallbackI instance)

Creates a BGFXCacheReadCallback instance that delegates to the specified BGFXCacheReadCallbackI instance.

createSafeback to summary
public static BGFXCacheReadCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.bgfx back to summary

private final Class BGFXCacheReadCallback.Container

extends BGFXCacheReadCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final BGFXCacheReadCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public boolean
invoke(long
the callback interface
_this
,
long
cache id
_id
,
long
buffer where to read data
_data
,
int
size of data to read
_size
)

Implements org.lwjgl.bgfx.BGFXCacheReadCallbackI.invoke.

Will be called to read a cached item.
Inherited from org.lwjgl.bgfx.BGFXCacheReadCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final BGFXCacheReadCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public boolean invoke(long _this, long _id, long _data, int _size)

Implements org.lwjgl.bgfx.BGFXCacheReadCallbackI.invoke.

Doc from org.lwjgl.bgfx.BGFXCacheReadCallbackI.invoke.

Will be called to read a cached item.

Parameters
_this:long

the callback interface

_id:long

cache id

_data:long

buffer where to read data

_size:int

size of data to read

Returns:boolean

true if data is read

Annotations
@Override