Package jnr.ffi.provider.converters
Class CharSequenceArrayParameterConverter.StringArray
- java.lang.Object
-
- jnr.ffi.Pointer
-
- jnr.ffi.provider.AbstractMemoryIO
-
- jnr.ffi.provider.InAccessibleMemoryIO
-
- jnr.ffi.provider.converters.CharSequenceArrayParameterConverter.StringArray
-
- Enclosing class:
- CharSequenceArrayParameterConverter
private static final class CharSequenceArrayParameterConverter.StringArray extends InAccessibleMemoryIO
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.charset.Charset
charset
private Pointer
memory
private java.util.List<Pointer>
stringMemory
-
Constructor Summary
Constructors Modifier Constructor Description private
StringArray(Runtime runtime, Pointer memory, int capacity)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static CharSequenceArrayParameterConverter.StringArray
allocate(Runtime runtime, int capacity)
(package private) java.lang.String
get(int idx)
(package private) void
put(int idx, java.lang.CharSequence str)
long
size()
Gets the size of this memory object in bytes (optional operation).-
Methods inherited from class jnr.ffi.provider.InAccessibleMemoryIO
array, arrayLength, arrayOffset, error, get, get, get, get, get, get, getByte, getDouble, getFloat, getInt, getLong, getLongLong, getPointer, getPointer, getShort, getString, getString, hasArray, indexOf, put, put, put, put, put, put, putByte, putDouble, putFloat, putInt, putLong, putLongLong, putPointer, putShort, putString, setMemory
-
Methods inherited from class jnr.ffi.provider.AbstractMemoryIO
checkBounds, checkBounds, getAddress, getInt, getNativeLong, indexOf, putAddress, putAddress, putInt, putNativeLong, slice, slice, transferFrom, transferTo
-
Methods inherited from class jnr.ffi.Pointer
address, get, getNullTerminatedPointerArray, getNullTerminatedStringArray, getRuntime, isDirect, newIntPointer, put, toString, wrap, wrap, wrap
-
-
-
-
Method Detail
-
get
java.lang.String get(int idx)
-
put
void put(int idx, java.lang.CharSequence str)
-
size
public long size()
Description copied from class:Pointer
Gets the size of this memory object in bytes (optional operation).
-
allocate
static CharSequenceArrayParameterConverter.StringArray allocate(Runtime runtime, int capacity)
-
-