Package com.sun.jna
Schnittstelle ToNativeConverter
- Alle bekannten Unterschnittstellen:
TypeConverter
- Alle bekannten Implementierungsklassen:
EnumConverter,NativeMappedConverter
public interface ToNativeConverter
Define conversion from a Java type to its corresponding native type.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungClass<?> Indicate the type expected fromtoNative(java.lang.Object, com.sun.jna.ToNativeContext).toNative(Object value, ToNativeContext context) Convert a Java type to an appropriate native type.
-
Methodendetails
-
toNative
Convert a Java type to an appropriate native type. The new type must be one of the following classes:Pointer- Boolean
- Byte
- Short
- Character
- Integer
NativeLong- Long
- Float
- Double
Structure- String
WStringBuffer(unsupported in direct mode)- primitive array (unsupported in direct mode)
-
nativeType
Class<?> nativeType()Indicate the type expected fromtoNative(java.lang.Object, com.sun.jna.ToNativeContext).
-