jnr.ffi.provider.converters
Class BoxedShortArrayParameterConverter

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

public class BoxedShortArrayParameterConverter
extends Object
implements ToNativeConverter<Short[],short[]>

Converts a Short[] array to a primitive short[] array parameter


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

Constructor Detail

BoxedShortArrayParameterConverter

public BoxedShortArrayParameterConverter(int parameterFlags)
Method Detail

getInstance

public static ToNativeConverter<Short[],short[]> getInstance(ToNativeContext toNativeContext)

toNative

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

nativeType

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


Copyright © 2013. All Rights Reserved.