Top Description Inners Fields Constructors Methods
jnr.ffi.provider.converters

public Class CharSequenceArrayParameterConverter

extends Object
implements ToNativeConverter<CharSequence[], Pointer>
Class Inheritance
All Implemented Interfaces
jnr.ffi.mapper.ToNativeConverter
Known Direct Subclasses
jnr.ffi.provider.converters.CharSequenceArrayParameterConverter.Out
Annotations
@NoContext
@Cacheable
Imports
jnr.ffi.Memory, .Pointer, .Runtime, jnr.ffi.mapper.ToNativeContext, .ToNativeConverter, jnr.ffi.provider.InAccessibleMemoryIO, .ParameterFlags, java.nio.ByteBuffer, .CharBuffer, java.nio.charset.Charset, java.util.ArrayList, .List

Converts a CharSequence[] array to a Pointer parameter

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
private static class

Field Summary

Modifier and TypeField and Description
private final int
private final Runtime

Constructor Summary

AccessConstructor and Description
pack-priv
CharSequenceArrayParameterConverter(Runtime runtime, int parameterFlags)

Method Summary

Modifier and TypeMethod and Description
public static ToNativeConverter<CharSequence[], Pointer>
getInstance(ToNativeContext toNativeContext)

public Class<Pointer>
public Pointer
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

parameterFlagsback to summary
private final int parameterFlags
runtimeback to summary
private final Runtime runtime

Constructor Detail

CharSequenceArrayParameterConverterback to summary
pack-priv CharSequenceArrayParameterConverter(Runtime runtime, int parameterFlags)

Method Detail

getInstanceback to summary
public static ToNativeConverter<CharSequence[], Pointer> getInstance(ToNativeContext toNativeContext)
nativeTypeback to summary
public Class<Pointer> nativeType()

Implements jnr.ffi.mapper.ToNativeConverter.nativeType.

Annotations
@Override
toNativeback to summary
public Pointer toNative(CharSequence[] array, ToNativeContext context)

Implements jnr.ffi.mapper.ToNativeConverter.toNative.

Annotations
@Override
jnr.ffi.provider.converters back to summary

public final Class CharSequenceArrayParameterConverter.Out

extends CharSequenceArrayParameterConverter
implements ToNativeConverter.PostInvocation<CharSequence[], Pointer>
Class Inheritance
All Implemented Interfaces
jnr.ffi.mapper.ToNativeConverter.PostInvocation, jnr.ffi.mapper.ToNativeConverter

Constructor Summary

AccessConstructor and Description
pack-priv
Out(Runtime runtime, int parameterFlags)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from jnr.ffi.provider.converters.CharSequenceArrayParameterConverter:
getInstancenativeTypetoNative

Constructor Detail

Outback to summary
pack-priv Out(Runtime runtime, int parameterFlags)

Method Detail

postInvokeback to summary
public void postInvoke(CharSequence[] array, Pointer primitive, ToNativeContext context)

Implements jnr.ffi.mapper.ToNativeConverter.PostInvocation.postInvoke.

Annotations
@Override
jnr.ffi.provider.converters back to summary

private final Class CharSequenceArrayParameterConverter.StringArray

extends InAccessibleMemoryIO
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Charset
private final Pointer
private List<Pointer>

Constructor Summary

AccessConstructor and Description
private
StringArray(Runtime runtime, Pointer memory, int capacity)

Method Summary

Modifier and TypeMethod and Description
pack-priv static CharSequenceArrayParameterConverter.StringArray
allocate(Runtime runtime, int capacity)

pack-priv String
get(int idx)

pack-priv void
put(int idx, CharSequence str)

public long
size()

Implements abstract jnr.ffi.Pointer.size.

Gets the size of this memory object in bytes (optional operation).
Inherited from jnr.ffi.provider.InAccessibleMemoryIO:
arrayarrayLengtharrayOffseterrorgetgetgetgetgetgetgetBytegetDoublegetFloatgetIntgetLonggetLongLonggetPointergetPointergetShortgetStringgetStringhasArrayindexOfputputputputputputputByteputDoubleputFloatputIntputLongputLongLongputPointerputShortputStringsetMemory

Field Detail

charsetback to summary
private final Charset charset
memoryback to summary
private final Pointer memory
stringMemoryback to summary
private List<Pointer> stringMemory

Constructor Detail

StringArrayback to summary
private StringArray(Runtime runtime, Pointer memory, int capacity)

Method Detail

allocateback to summary
pack-priv static CharSequenceArrayParameterConverter.StringArray allocate(Runtime runtime, int capacity)
getback to summary
pack-priv String get(int idx)
putback to summary
pack-priv void put(int idx, CharSequence str)
sizeback to summary
public long size()

Implements abstract jnr.ffi.Pointer.size.

Doc from jnr.ffi.Pointer.size.

Gets the size of this memory object in bytes (optional operation).

Returns:long

the size of the memory area this Pointer points to. If the size is unknown, java.lang.Long#MAX_VALUE is returned}.

Annotations
@Override