Package org.lwjgl.stb
Interface STBIReadCallbackI
-
- All Superinterfaces:
- CallbackI, CallbackI.I, Pointer
- All Known Implementing Classes:
- STBIReadCallback
@FunctionalInterface public interface STBIReadCallbackI extends CallbackI.I
Instances of this interface may be set to theread
field of theSTBIIOCallbacks
struct.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.lwjgl.system.CallbackI
CallbackI.B, CallbackI.D, CallbackI.F, CallbackI.I, CallbackI.J, CallbackI.P, CallbackI.S, CallbackI.V, CallbackI.Z
-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method and Description default long
address()
Returns the raw pointer address as along
value.default int
callback(long args)
Will be called by native code.int
invoke(long user, long data, int size)
Thestbi_io_callbacks.read
callback.
-
-
-
Method Detail
-
address
default long address()
Description copied from interface:Pointer
Returns the raw pointer address as along
value.
-
callback
default int callback(long args)
Description copied from interface:CallbackI.I
Will be called by native code.- Specified by:
callback
in interfaceCallbackI.I
- Parameters:
args
- pointer to aDCArgs
iterator- Returns:
- the value to store to the result
DCValue
-
invoke
int invoke(long user, long data, int size)
Thestbi_io_callbacks.read
callback.- Parameters:
user
- a pointer to user datadata
- the data buffer to fillsize
- the number of bytes to read- Returns:
- the number of bytes actually read
-
-