jnr.ffi.provider.converters
Class BoxedLong32ArrayParameterConverter

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

public class BoxedLong32ArrayParameterConverter
extends Object
implements ToNativeConverter<Long[],int[]>

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


Nested Class Summary
static class BoxedLong32ArrayParameterConverter.Out
           
 
Nested classes/interfaces inherited from interface jnr.ffi.mapper.ToNativeConverter
ToNativeConverter.Cacheable, ToNativeConverter.NoContext, ToNativeConverter.PostInvocation<J,N>
 
Constructor Summary
BoxedLong32ArrayParameterConverter(int parameterFlags)
           
 
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
 

Constructor Detail

BoxedLong32ArrayParameterConverter

public BoxedLong32ArrayParameterConverter(int parameterFlags)
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.