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

jnr.ffi.provider.jffi.ParameterStrategy Maven / Gradle / Ivy

There is a newer version: 2.2.16
Show newest version
package jnr.ffi.provider.jffi;

import com.kenai.jffi.ObjectParameterStrategy;
import com.kenai.jffi.ObjectParameterType;

/**
 *
 */
abstract public class ParameterStrategy extends ObjectParameterStrategy {
    /* objectCount is accessed directly from asm code - do not change */
    public final int objectCount;

    protected ParameterStrategy(StrategyType type) {
        super(type);
        objectCount = type == HEAP ? 1 : 0;
    }

    protected ParameterStrategy(StrategyType type, ObjectParameterType parameterType) {
        super(type, parameterType);
        objectCount = type == HEAP ? 1 : 0;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy