Package com.sun.jna
Interface ToNativeConverter
- 
- All Known Subinterfaces:
- TypeConverter
 - All Known Implementing Classes:
- EnumConverter,- NativeMappedConverter
 
 public interface ToNativeConverterDefine conversion from a Java type to its corresponding native type.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<?>nativeType()Indicate the type expected fromtoNative(java.lang.Object, com.sun.jna.ToNativeContext).java.lang.ObjecttoNative(java.lang.Object value, ToNativeContext context)Convert a Java type to an appropriate native type.
 
- 
- 
- 
Method Detail- 
toNativejava.lang.Object toNative(java.lang.Object value, ToNativeContext context)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
- WString
- Buffer(unsupported in direct mode)
- primitive array (unsupported in direct mode)
 
 - 
nativeTypejava.lang.Class<?> nativeType() Indicate the type expected fromtoNative(java.lang.Object, com.sun.jna.ToNativeContext).
 
- 
 
-