jnr.ffi.provider.converters
Class Long32ArrayParameterConverter

java.lang.Object
  extended by jnr.ffi.provider.converters.Long32ArrayParameterConverter
All Implemented Interfaces:
ToNativeConverter<long[],int[]>
Direct Known Subclasses:
Long32ArrayParameterConverter.Out

public class Long32ArrayParameterConverter
extends Object
implements ToNativeConverter<long[],int[]>

Converts a long[] array to a primitive int[] array parameter


Nested Class Summary
static class Long32ArrayParameterConverter.Out
           
 
Nested classes/interfaces inherited from interface jnr.ffi.mapper.ToNativeConverter
ToNativeConverter.Cacheable, ToNativeConverter.NoContext, ToNativeConverter.PostInvocation<J,N>
 
Method Summary
static ToNativeConverter<long[],int[]> getInstance(ToNativeContext toNativeContext)
           
 Class<int[]> nativeType()
           
 int[] toNative(long[] array, ToNativeContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ToNativeConverter<long[],int[]> getInstance(ToNativeContext toNativeContext)

toNative

public int[] toNative(long[] array,
                      ToNativeContext context)
Specified by:
toNative in interface ToNativeConverter<long[],int[]>

nativeType

public Class<int[]> nativeType()
Specified by:
nativeType in interface ToNativeConverter<long[],int[]>


Copyright © 2013. All Rights Reserved.