jnr.ffi.provider.converters
Class StructArrayParameterConverter

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

public class StructArrayParameterConverter
extends Object
implements ToNativeConverter<Struct[],Pointer>

Converts a Pointer[] array to a long[] array parameter


Nested Class Summary
static class StructArrayParameterConverter.Out
           
 
Nested classes/interfaces inherited from interface jnr.ffi.mapper.ToNativeConverter
ToNativeConverter.Cacheable, ToNativeConverter.NoContext, ToNativeConverter.PostInvocation<J,N>
 
Field Summary
protected  int parameterFlags
           
protected  Runtime runtime
           
 
Method Summary
static ToNativeConverter<Struct[],Pointer> getInstance(ToNativeContext toNativeContext, Class structClass)
           
 Class<Pointer> nativeType()
           
 Pointer toNative(Struct[] structs, ToNativeContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runtime

protected final Runtime runtime

parameterFlags

protected final int parameterFlags
Method Detail

getInstance

public static ToNativeConverter<Struct[],Pointer> getInstance(ToNativeContext toNativeContext,
                                                              Class structClass)

nativeType

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

toNative

public Pointer toNative(Struct[] structs,
                        ToNativeContext context)
Specified by:
toNative in interface ToNativeConverter<Struct[],Pointer>


Copyright © 2013. All Rights Reserved.