static NativeType nativeType(jnr.ffi.Type jnrType) { return jnrType.getNativeType(); }
@Override public int nativeSize(jnr.ffi.Runtime runtime) { return runtime.findType(typeAlias).size(); }
public AbstractRuntime(ByteOrder byteOrder, EnumMap<NativeType, Type> typeMap) { this.byteOrder = byteOrder; EnumSet<NativeType> nativeTypes = EnumSet.allOf(NativeType.class); types = new Type[nativeTypes.size()]; for (NativeType t : nativeTypes) { types[t.ordinal()] = typeMap.containsKey(t) ? typeMap.get(t) : new BadType(t.toString()); } this.addressSize = types[NativeType.ADDRESS.ordinal()].size(); this.longSize = types[NativeType.SLONG.ordinal()].size(); this.addressMask = addressSize == 4 ? 0xffffffffL : 0xffffffffffffffffL; }
public AbstractRuntime(ByteOrder byteOrder, EnumMap<NativeType, Type> typeMap) { this.byteOrder = byteOrder; EnumSet<NativeType> nativeTypes = EnumSet.allOf(NativeType.class); types = new Type[nativeTypes.size()]; for (NativeType t : nativeTypes) { types[t.ordinal()] = typeMap.containsKey(t) ? typeMap.get(t) : new BadType(t.toString()); } this.addressSize = types[NativeType.ADDRESS.ordinal()].size(); this.longSize = types[NativeType.SLONG.ordinal()].size(); this.addressMask = addressSize == 4 ? 0xffffffffL : 0xffffffffffffffffL; }
static NativeType nativeType(jnr.ffi.Type jnrType) { return jnrType.getNativeType(); }
public AbstractRuntime(ByteOrder byteOrder, EnumMap<NativeType, Type> typeMap) { this.byteOrder = byteOrder; EnumSet<NativeType> nativeTypes = EnumSet.allOf(NativeType.class); types = new Type[nativeTypes.size()]; for (NativeType t : nativeTypes) { types[t.ordinal()] = typeMap.containsKey(t) ? typeMap.get(t) : new BadType(t.toString()); } this.addressSize = types[NativeType.ADDRESS.ordinal()].size(); this.longSize = types[NativeType.SLONG.ordinal()].size(); this.addressMask = addressSize == 4 ? 0xffffffffL : 0xffffffffffffffffL; }
static NativeType nativeType(jnr.ffi.Type jnrType) { return jnrType.getNativeType(); }
/** * Gets the size of a Pointer in bits * * @return the size of the Pointer */ public final int size() { return getRuntime().findType(NativeType.ADDRESS).size() * 8; }
static NativeType getMethodResultNativeType(jnr.ffi.Runtime runtime, Class resultClass, Collection<Annotation> annotations) { return Types.getType(runtime, resultClass, annotations).getNativeType(); }
/** * Gets the size of a Pointer in bits * * @return the size of the Pointer */ public final int size() { return getRuntime().findType(NativeType.ADDRESS).size(); }
static NativeType getMethodResultNativeType(jnr.ffi.Runtime runtime, Class resultClass, Collection<Annotation> annotations) { return Types.getType(runtime, resultClass, annotations).getNativeType(); }
/** * Gets the size of a Pointer in bits * * @return the size of the Pointer */ public final int size() { return getRuntime().findType(NativeType.ADDRESS).size() * 8; }
static NativeType getMethodParameterNativeType(jnr.ffi.Runtime runtime, Class parameterClass, Collection<Annotation> annotations) { return Types.getType(runtime, parameterClass, annotations).getNativeType(); }