Top Description Inners Constructors Methods
org.lwjgl.bgfx

public abstract Class BGFXCacheReadSizeCallback

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

Returns the size of a cached item. Returns 0 if no cached item was found.

Type


uint32_t (*invoke) (
    bgfx_callback_interface_t *_this,
    uint64_t _id
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static BGFXCacheReadSizeCallback

Returns:

the new BGFXCacheReadSizeCallback
create
(long functionPointer)

Creates a BGFXCacheReadSizeCallback instance from the specified function pointer.

public static BGFXCacheReadSizeCallback
create(BGFXCacheReadSizeCallbackI instance)

Creates a BGFXCacheReadSizeCallback instance that delegates to the specified BGFXCacheReadSizeCallbackI instance.

public static BGFXCacheReadSizeCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

BGFXCacheReadSizeCallbackback to summary
protected BGFXCacheReadSizeCallback()
BGFXCacheReadSizeCallbackback to summary
pack-priv BGFXCacheReadSizeCallback(long functionPointer)

Method Detail

createback to summary
public static BGFXCacheReadSizeCallback create(long functionPointer)

Creates a BGFXCacheReadSizeCallback instance from the specified function pointer.

Returns:BGFXCacheReadSizeCallback

the new BGFXCacheReadSizeCallback

createback to summary
public static BGFXCacheReadSizeCallback create(BGFXCacheReadSizeCallbackI instance)

Creates a BGFXCacheReadSizeCallback instance that delegates to the specified BGFXCacheReadSizeCallbackI instance.

createSafeback to summary
public static BGFXCacheReadSizeCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.bgfx back to summary

private final Class BGFXCacheReadSizeCallback.Container

extends BGFXCacheReadSizeCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final BGFXCacheReadSizeCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public int
invoke(long
the callback interface
_this
,
long
cache id
_id
)

Implements org.lwjgl.bgfx.BGFXCacheReadSizeCallbackI.invoke.

Will be called to determine size of cached item.
Inherited from org.lwjgl.bgfx.BGFXCacheReadSizeCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final BGFXCacheReadSizeCallbackI delegate

Constructor Detail

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

Method Detail

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

Implements org.lwjgl.bgfx.BGFXCacheReadSizeCallbackI.invoke.

Doc from org.lwjgl.bgfx.BGFXCacheReadSizeCallbackI.invoke.

Will be called to determine size of cached item.

Parameters
_this:long

the callback interface

_id:long

cache id

Returns:int

number of bytes to read

Annotations
@Override