Package it.unich.jgmp.nativelib
Class GmpTypeMapper.MPQToNativeConverter
- java.lang.Object
-
- it.unich.jgmp.nativelib.GmpTypeMapper.MPQToNativeConverter
-
- All Implemented Interfaces:
com.sun.jna.ToNativeConverter
- Enclosing class:
- GmpTypeMapper
private static class GmpTypeMapper.MPQToNativeConverter extends java.lang.Object implements com.sun.jna.ToNativeConverter
A converter fromMPQ
to the native pointer type. It is used by theprintf
/scanf
functions to correctly handle GMP types.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MPQToNativeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
nativeType()
java.lang.Object
toNative(java.lang.Object value, com.sun.jna.ToNativeContext context)
-
-
-
Method Detail
-
nativeType
public java.lang.Class<?> nativeType()
- Specified by:
nativeType
in interfacecom.sun.jna.ToNativeConverter
-
toNative
public java.lang.Object toNative(java.lang.Object value, com.sun.jna.ToNativeContext context)
- Specified by:
toNative
in interfacecom.sun.jna.ToNativeConverter
-
-