All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.stb.STBIEOFCallbackI Maven / Gradle / Ivy

/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.stb;

import org.lwjgl.system.*;
import org.lwjgl.system.libffi.*;

import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.libffi.LibFFI.*;

/**
 * Instances of this interface may be set to the {@code eof} field of the {@link STBIIOCallbacks} struct.
 * 
 * 

Type

* *

 * int (*{@link #invoke}) (
 *     void *user
 * )
*/ @FunctionalInterface @NativeType("int (*) (void *)") public interface STBIEOFCallbackI extends CallbackI { FFICIF CIF = apiCreateCIF( FFI_DEFAULT_ABI, ffi_type_sint32, ffi_type_pointer ); @Override default FFICIF getCallInterface() { return CIF; } @Override default void callback(long ret, long args) { int __result = invoke( memGetAddress(memGetAddress(args)) ); apiClosureRet(ret, __result); } /** * The {@code stbi_io_callbacks.eof} callback. * * @param user a pointer to user data * * @return nonzero if we are at the end of file/data */ int invoke(@NativeType("void *") long user); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy