Top Description Inners Constructors Methods
org.lwjgl.bgfx

public abstract Class BGFXCacheWriteCallback

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

Writes cached item.

Type


void (*invoke) (
    bgfx_callback_interface_t *_this,
    uint64_t _id,
    void const *_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
BGFXCacheWriteCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static BGFXCacheWriteCallback

Returns:

the new BGFXCacheWriteCallback
create
(long functionPointer)

Creates a BGFXCacheWriteCallback instance from the specified function pointer.

public static BGFXCacheWriteCallback
create(BGFXCacheWriteCallbackI instance)

Creates a BGFXCacheWriteCallback instance that delegates to the specified BGFXCacheWriteCallbackI instance.

public static BGFXCacheWriteCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

BGFXCacheWriteCallbackback to summary
protected BGFXCacheWriteCallback()
BGFXCacheWriteCallbackback to summary
pack-priv BGFXCacheWriteCallback(long functionPointer)

Method Detail

createback to summary
public static BGFXCacheWriteCallback create(long functionPointer)

Creates a BGFXCacheWriteCallback instance from the specified function pointer.

Returns:BGFXCacheWriteCallback

the new BGFXCacheWriteCallback

createback to summary
public static BGFXCacheWriteCallback create(BGFXCacheWriteCallbackI instance)

Creates a BGFXCacheWriteCallback instance that delegates to the specified BGFXCacheWriteCallbackI instance.

createSafeback to summary
public static BGFXCacheWriteCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.bgfx back to summary

private final Class BGFXCacheWriteCallback.Container

extends BGFXCacheWriteCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final BGFXCacheWriteCallbackI

Constructor Summary

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

Method Summary

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

Implements org.lwjgl.bgfx.BGFXCacheWriteCallbackI.invoke.

Will be called to writes a cached item.
Inherited from org.lwjgl.bgfx.BGFXCacheWriteCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final BGFXCacheWriteCallbackI delegate

Constructor Detail

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

Method Detail

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

Implements org.lwjgl.bgfx.BGFXCacheWriteCallbackI.invoke.

Doc from org.lwjgl.bgfx.BGFXCacheWriteCallbackI.invoke.

Will be called to writes a cached item.

Parameters
_this:long

the callback interface

_id:long

cache id

_data:long

data to write

_size:int

size of data to write

Annotations
@Override