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

org.lwjgl.util.opus.OPCloseFuncI Maven / Gradle / Ivy

There is a newer version: 3.3.5
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.util.opus;

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 {@link OpusFileCallbacks}.
 * 
 * 

Type

* *

 * int (*{@link #invoke}) (
 *     void *_stream
 * )
*/ @FunctionalInterface @NativeType("op_close_func") public interface OPCloseFuncI 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); } /** * Closes the underlying stream. * * @return {@code 0:} Success. {@code EOF}: An error occurred. {@code errno} need not be set.} */ int invoke(@NativeType("void *") long _stream); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy