Uses of Class
jnr.ffi.Pointer
Packages that use Pointer
Package
Description
-
Uses of Pointer in jnr.ffi
Modifier and TypeFieldDescriptionprivate Pointer
Struct.PointerField.finalPointer
private Pointer
Struct.Info.memory
private Pointer
Struct.UTFStringRef.valueHolder
private Pointer
StructLayout.UTFStringRef.valueHolder
Modifier and TypeMethodDescriptionabstract Pointer
Adds a mapping from a java object to a unique native address.static Pointer
Allocates a new block of java memory and wraps it in aPointer
accessor.static Pointer
Memory.allocate
(Runtime runtime, NativeType type) Allocates a new block of java memory and wraps it in aPointer
accessor.static Pointer
Allocates a new block of java memory and wraps it in aPointer
accessor.static Pointer
Allocates a new block of java memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateDirect
(Runtime runtime, int size) Allocates a new block of native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateDirect
(Runtime runtime, int size, boolean clear) Allocates a new block of native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateDirect
(Runtime runtime, long size) Allocates a new block of native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateDirect
(Runtime runtime, long size, boolean clear) Allocates a new block of native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateDirect
(Runtime runtime, NativeType type) Allocates a new block of native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateDirect
(Runtime runtime, TypeAlias type) Allocates a new block of native memory and wraps it in aPointer
accessor.private Pointer
Struct.Info.allocateMemory
(int flags) static Pointer
Memory.allocateTemporary
(Runtime runtime, NativeType type) Allocates a new block of transient native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateTemporary
(Runtime runtime, NativeType type, boolean clear) Allocates a new block of transient native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateTemporary
(Runtime runtime, TypeAlias type) Allocates a new block of transient native memory and wraps it in aPointer
accessor.final Pointer
Struct.Pointer.get()
Gets thePointer
value from the native memory.final Pointer
Gets thePointer
value from the native memory.final Pointer
Struct.AbstractMember.getMemory()
static Pointer
static Pointer
final Pointer
Struct.Info.getMemory()
final Pointer
Struct.Info.getMemory
(int flags) (package private) abstract Pointer
Struct.Member.getMemory()
Gets the memory object used to store thisMember
final Pointer
Struct.NumberField.getMemory()
Pointer[]
Pointer.getNullTerminatedPointerArray
(long offset) abstract Pointer
Pointer.getPointer
(long offset) Reads anPointer
value at the given offset.abstract Pointer
Pointer.getPointer
(long offset, long size) Reads anPointer
value at the given offset.protected final Pointer
Struct.PointerField.getPointer()
Gets thePointer
value from the native memory.protected abstract Pointer
Struct.String.getStringMemory()
protected Pointer
Struct.UTFString.getStringMemory()
protected Pointer
Struct.UTFStringRef.getStringMemory()
protected abstract Pointer
StructLayout.String.getStringMemory
(Pointer ptr) protected Pointer
StructLayout.UTFString.getStringMemory
(Pointer ptr) protected Pointer
StructLayout.UTFStringRef.getStringMemory
(Pointer ptr) static Pointer
Pointer.newIntPointer
(Runtime runtime, long address) Wraps an integer value in an opaquePointer
instance.ObjectReferenceManager.newReference
(T object) Deprecated.abstract Pointer
Pointer.slice
(long offset) Creates a newPointer
representing a sub-region of the memory referred to by thisPointer
.abstract Pointer
Pointer.slice
(long offset, long size) Creates a newPointer
representing a sub-region of the memory referred to by thisPointer
.static Pointer
Wraps a native address in aPointer
instance.static Pointer
Wraps a native address in aPointer
instance.static Pointer
Pointer.wrap
(Runtime runtime, ByteBuffer buffer) Wraps an existing ByteBuffer in aPointer
implementation so it can be used as a parameter to native functions.Modifier and TypeMethodDescriptionbyte
Returns abyte
representation of thisNumber
.final byte
Returns a java byte representation of this field.final double
StructLayout.Double.doubleValue
(Pointer ptr) final double
StructLayout.Float.doubleValue
(Pointer ptr) double
StructLayout.NumberField.doubleValue
(Pointer ptr) Returns anfloat
representation of thisNumber
.final float
StructLayout.Double.floatValue
(Pointer ptr) final float
StructLayout.Float.floatValue
(Pointer ptr) float
StructLayout.NumberField.floatValue
(Pointer ptr) Returns anfloat
representation of thisNumber
.void
ObjectReferenceManager.freeReference
(Pointer reference) Deprecated.abstract T
Gets the java object that is mapped to the native memory address referred to byreference
.void
Bulk get method for multiplePointer
values.abstract boolean
Gets the value for this field.final boolean
final boolean
final double
Gets a java Enum value representing the native integer value.final float
final long
Gets the value for this field.final Pointer
Gets thePointer
value from the native memory.final short
Gets the value for this field.final int
Gets the value for this field.final long
Gets the value for this field.final byte
Gets the value for this field.final long
Gets the value for this field.abstract String
final int
Gets the value for this field.final long
Gets the value for this field.final long
Gets the value for this field.final short
Gets the value for this field.final long
Gets the value for this field.final String
final String
final boolean
Deprecated.protected abstract Pointer
StructLayout.String.getStringMemory
(Pointer ptr) protected Pointer
StructLayout.UTFString.getStringMemory
(Pointer ptr) protected Pointer
StructLayout.UTFStringRef.getStringMemory
(Pointer ptr) final int
final int
final int
final int
final int
Returns an integer representation of this enum field.final int
final int
int
abstract int
Returns aint
representation of thisNumber
.final int
Returns an integer representation of thisPointer
.final int
Returns a java int representation of this field.final int
Returns a java int representation of this field.final int
Returns a java int representation of this field.final int
Returns a java int representation of this field.final int
Returns a java int representation of this field.final int
Returns a java int representation of this field.final int
Returns a java int representation of this field.final int
Returns a java int representation of this field.final int
Returns a java int representation of this field.final int
Returns a java int representation of this field.final long
final long
final long
final long
long
long
Returns along
representation of thisNumber
.final long
Returns anlong
representation of thisPointer
.final long
Returns a java long representation of this field.final long
Returns a java long representation of this field.final long
Returns a java long representation of this field.final long
Returns a java long representation of this field.final long
Returns a java long representation of this field.void
Bulk put method for multiplePointer
values.abstract void
Pointer.putPointer
(long offset, Pointer value) Writes aPointer
value at the given offset.abstract boolean
Removes a mapping from java object to native pointer.final void
Puts aAddress
value into the native memory.abstract void
Sets the field to a new value.final void
final void
final void
void
void
void
void
void
final void
void
final void
Sets the native integer value using a java Enum value.void
final void
void
final void
void
final void
void
void
abstract void
Sets the field to a new value.void
final void
Sets aPointer
value in the native memory.final void
Sets the value for this field.void
final void
Sets the value for this field.void
final void
Sets the value for this field.void
final void
Sets the value for this field.void
final void
Sets the value for this field.void
abstract void
final void
Sets the value for this field.void
final void
Sets the value for this field.void
final void
Sets the value for this field.void
final void
Sets the value for this field.void
final void
Sets the value for this field.void
final void
final void
final void
short
StructLayout.NumberField.shortValue
(Pointer ptr) Returns ashort
representation of thisNumber
.final short
StructLayout.Signed16.shortValue
(Pointer ptr) Returns a java short representation of this field.final short
StructLayout.Signed8.shortValue
(Pointer ptr) Returns a java short representation of this field.final short
StructLayout.Unsigned8.shortValue
(Pointer ptr) Returns a java short representation of this field.Returns a string representation of thisBoolean
.final String
final String
Returns a string representation of this field.final String
Returns a string representation of thisNumber
.final String
Returns a string representation of thisPointer
.final String
Returns a string representation of this field.final String
Returns a string representation of this field.final String
final String
Returns a string representation of this field.final String
Returns a string representation of this field.abstract void
Pointer.transferFrom
(long offset, Pointer src, long srcOffset, long count) Bulk data transfer from one memory location to another.abstract void
Pointer.transferTo
(long offset, Pointer dst, long dstOffset, long count) Bulk data transfer from one memory location to another.final void
final void
Uses the specified memory address as the backing store for this structure. -
Uses of Pointer in jnr.ffi.byref
Methods in jnr.ffi.byref with parameters of type PointerModifier and TypeMethodDescriptionvoid
AddressByReference.fromNative
(Runtime runtime, Pointer memory, long offset) Copies the address value from native memoryvoid
ByReference.fromNative
(Runtime runtime, Pointer memory, long offset) Copies the java value from native memoryvoid
ByteByReference.fromNative
(Runtime runtime, Pointer buffer, long offset) Copies the Byte value from native memoryvoid
DoubleByReference.fromNative
(Runtime runtime, Pointer buffer, long offset) Copies the double value from native memoryvoid
FloatByReference.fromNative
(Runtime runtime, Pointer buffer, long offset) Copies the float value from native memoryvoid
IntByReference.fromNative
(Runtime runtime, Pointer buffer, long offset) Copies the integer value from native memoryvoid
LongLongByReference.fromNative
(Runtime runtime, Pointer memory, long offset) Copies the value from native memoryvoid
NativeLongByReference.fromNative
(Runtime runtime, Pointer memory, long offset) Copies the long value from native memoryvoid
NumberByReference.fromNative
(Runtime runtime, Pointer memory, long offset) final void
PointerByReference.fromNative
(Runtime runtime, Pointer memory, long offset) void
ShortByReference.fromNative
(Runtime runtime, Pointer buffer, long offset) Copies the short value from native memoryvoid
Copies the address value to native memoryvoid
Copies the java value to native memoryvoid
Copies the Byte value to native memoryvoid
Copies the double value to native memoryvoid
Copies the float value to native memoryvoid
Copies the integer value to native memoryvoid
Copies the value to native memoryvoid
Copies the long value to native memoryvoid
final void
void
Copies the short value to native memoryConstructors in jnr.ffi.byref with parameters of type PointerModifierConstructorDescriptionPointerByReference
(Pointer value) Creates a new reference to a pointer value -
Uses of Pointer in jnr.ffi.provider
Subclasses of Pointer in jnr.ffi.providerModifier and TypeClassDescriptionclass
class
class
Base implementations of some MemoryIO operations.final class
private static final class
class
final class
final class
class
Fields in jnr.ffi.provider declared as PointerModifier and TypeFieldDescriptionprivate final Pointer
BoundedMemoryIO.io
private final Pointer
ShareMemoryIO.ptr
Methods in jnr.ffi.provider that return PointerModifier and TypeMethodDescriptionMemoryManager.allocate
(int size) MemoryManager.allocateDirect
(int size) MemoryManager.allocateDirect
(int size, boolean clear) MemoryManager.allocateDirect
(long size) MemoryManager.allocateDirect
(long size, boolean clear) MemoryManager.allocateTemporary
(int size, boolean clear) <T> Pointer
ClosureManager.getClosurePointer
(Class<? extends T> closureClass, T instance) BoundedMemoryIO.getDelegatedMemoryIO()
DelegatingMemoryIO.getDelegatedMemoryIO()
final Pointer
ShareMemoryIO.getDelegatedMemoryIO()
BoundedMemoryIO.getPointer
(long offset) BoundedMemoryIO.getPointer
(long offset, long size) final Pointer
InAccessibleMemoryIO.getPointer
(long offset) final Pointer
InAccessibleMemoryIO.getPointer
(long offset, long size) ShareMemoryIO.getPointer
(long offset) ShareMemoryIO.getPointer
(long offset, long size) MemoryManager.newOpaquePointer
(long address) MemoryManager.newPointer
(long address) MemoryManager.newPointer
(long address, long size) MemoryManager.newPointer
(ByteBuffer buffer) Methods in jnr.ffi.provider with parameters of type PointerModifier and TypeMethodDescriptionvoid
BoundedMemoryIO.putPointer
(long offset, Pointer value) final void
InAccessibleMemoryIO.putPointer
(long offset, Pointer value) void
ShareMemoryIO.putPointer
(long offset, Pointer value) boolean
void
AbstractMemoryIO.transferFrom
(long offset, Pointer other, long otherOffset, long count) void
BoundedMemoryIO.transferFrom
(long offset, Pointer other, long otherOffset, long count) void
AbstractMemoryIO.transferTo
(long offset, Pointer other, long otherOffset, long count) void
BoundedMemoryIO.transferTo
(long offset, Pointer other, long otherOffset, long count) Constructors in jnr.ffi.provider with parameters of type PointerModifierConstructorDescriptionBoundedMemoryIO
(Pointer parent, long offset, long size) ShareMemoryIO
(Pointer parent, long offset) -
Uses of Pointer in jnr.ffi.provider.converters
Subclasses of Pointer in jnr.ffi.provider.convertersModifier and TypeClassDescriptionprivate static final class
Fields in jnr.ffi.provider.converters declared as PointerModifier and TypeFieldDescriptionprivate final Pointer
CharSequenceArrayParameterConverter.StringArray.memory
Fields in jnr.ffi.provider.converters with type parameters of type PointerModifier and TypeFieldDescriptionprivate static final FromNativeConverter
<String, Pointer> StringResultConverter.DEFAULT
private static final ToNativeConverter
<ByReference, Pointer> ByReferenceParameterConverter.IN
private static final ToNativeConverter
<ByReference, Pointer> ByReferenceParameterConverter.INOUT
private static final ToNativeConverter
<ByReference, Pointer> ByReferenceParameterConverter.OUT
CharSequenceArrayParameterConverter.StringArray.stringMemory
Methods in jnr.ffi.provider.converters that return PointerModifier and TypeMethodDescriptionByReferenceParameterConverter.toNative
(ByReference value, ToNativeContext context) CharSequenceArrayParameterConverter.toNative
(CharSequence[] array, ToNativeContext context) StructArrayParameterConverter.toNative
(Struct[] structs, ToNativeContext context) StructByReferenceToNativeConverter.toNative
(Struct value, ToNativeContext ctx) Methods in jnr.ffi.provider.converters that return types with arguments of type PointerModifier and TypeMethodDescriptionstatic ToNativeConverter
<ByReference, Pointer> ByReferenceParameterConverter.getInstance
(ToNativeContext toNativeContext) static ToNativeConverter
<CharSequence[], Pointer> CharSequenceArrayParameterConverter.getInstance
(ToNativeContext toNativeContext) static FromNativeConverter
<String, Pointer> StringResultConverter.getInstance
(Charset cs) static FromNativeConverter
<String, Pointer> StringResultConverter.getInstance
(FromNativeContext fromNativeContext) static ToNativeConverter
<Struct[], Pointer> StructArrayParameterConverter.getInstance
(ToNativeContext toNativeContext, Class structClass) static FromNativeConverter
<Struct, Pointer> StructByReferenceFromNativeConverter.getInstance
(Class structClass, FromNativeContext toNativeContext) static ToNativeConverter
<Struct, Pointer> StructByReferenceToNativeConverter.getInstance
(ToNativeContext toNativeContext) ByReferenceParameterConverter.nativeType()
CharSequenceArrayParameterConverter.nativeType()
StringResultConverter.nativeType()
StructArrayParameterConverter.nativeType()
StructByReferenceFromNativeConverter.nativeType()
StructByReferenceToNativeConverter.nativeType()
Methods in jnr.ffi.provider.converters with parameters of type PointerModifier and TypeMethodDescriptionStringResultConverter.fromNative
(Pointer pointer, FromNativeContext context) StructByReferenceFromNativeConverter.fromNative
(Pointer nativeValue, FromNativeContext context) void
ByReferenceParameterConverter.Out.postInvoke
(ByReference byReference, Pointer pointer, ToNativeContext context) void
CharSequenceArrayParameterConverter.Out.postInvoke
(CharSequence[] array, Pointer primitive, ToNativeContext context) void
Pointer32ArrayParameterConverter.Out.postInvoke
(Pointer[] pointers, int[] primitive, ToNativeContext context) void
Pointer64ArrayParameterConverter.Out.postInvoke
(Pointer[] pointers, long[] primitive, ToNativeContext context) void
StructArrayParameterConverter.Out.postInvoke
(Struct[] structs, Pointer primitive, ToNativeContext context) int[]
Pointer32ArrayParameterConverter.toNative
(Pointer[] pointers, ToNativeContext context) long[]
Pointer64ArrayParameterConverter.toNative
(Pointer[] pointers, ToNativeContext context) Constructors in jnr.ffi.provider.converters with parameters of type Pointer -
Uses of Pointer in jnr.ffi.provider.jffi
Subclasses of Pointer in jnr.ffi.provider.jffiModifier and TypeClassDescription(package private) class
final class
class
static class
(package private) class
(package private) class
class
Fields in jnr.ffi.provider.jffi declared as PointerModifier and TypeFieldDescriptionprotected final Pointer
ReflectionVariableAccessorGenerator.AbstractVariable.memory
(package private) final Pointer
X86Disassembler.ud
Fields in jnr.ffi.provider.jffi with type parameters of type PointerMethods in jnr.ffi.provider.jffi that return PointerModifier and TypeMethodDescriptionNativeMemoryManager.allocate
(int size) NativeMemoryManager.allocateDirect
(int size) NativeMemoryManager.allocateDirect
(int size, boolean clear) NativeMemoryManager.allocateDirect
(long size) NativeMemoryManager.allocateDirect
(long size, boolean clear) NativeMemoryManager.allocateTemporary
(int size) NativeMemoryManager.allocateTemporary
(int size, boolean clear) ReflectionVariableAccessorGenerator.PointerVariable.get()
final <T> Pointer
NativeClosureManager.getClosurePointer
(Class<? extends T> closureClass, T instance) ArrayMemoryIO.getPointer
(long offset) ArrayMemoryIO.getPointer
(long offset, long size) ByteBufferMemoryIO.getPointer
(long offset) ByteBufferMemoryIO.getPointer
(long offset, long size) DirectMemoryIO.getPointer
(long offset) DirectMemoryIO.getPointer
(long offset, long size) (package private) Pointer
NativeClosureFactory.ClosureReference.getPointer()
NativeMemoryManager.newOpaquePointer
(long address) (package private) static Pointer
MemoryUtil.newPointer
(Runtime runtime, int ptr) (package private) static Pointer
MemoryUtil.newPointer
(Runtime runtime, long ptr) (package private) static Pointer
MemoryUtil.newPointer
(Runtime runtime, long ptr, long size) NativeMemoryManager.newPointer
(long address) NativeMemoryManager.newPointer
(long address, long size) NativeMemoryManager.newPointer
(ByteBuffer buffer) static Pointer
AsmRuntime.pointerValue
(int ptr, Runtime runtime) static Pointer
AsmRuntime.pointerValue
(long ptr, Runtime runtime) NativeClosureManager.ClosureSite.toNative
(T value, ToNativeContext context) X86Disassembler.X86DisassemblerConverter.toNative
(X86Disassembler value, ToNativeContext context) Methods in jnr.ffi.provider.jffi that return types with arguments of type PointerModifier and TypeMethodDescriptionprivate FromNativeConverter
<? extends Struct, Pointer> StructByReferenceResultConverterFactory.createConverter
(Runtime runtime, Class<? extends Struct> structClass, FromNativeContext fromNativeContext) final FromNativeConverter
<? extends Struct, Pointer> StructByReferenceResultConverterFactory.get
(Class<? extends Struct> structClass, FromNativeContext fromNativeContext) static FromNativeConverter
<?, Pointer> ClosureFromNativeConverter.getInstance
(Runtime runtime, SignatureType type, AsmClassLoader classLoader, SignatureTypeMapper typeMapper) AsmStructByReferenceFromNativeConverter.nativeType()
ClosureFromNativeConverter.nativeType()
NativeClosureManager.ClosureSite.nativeType()
X86Disassembler.X86DisassemblerConverter.nativeType()
(package private) <T> ToNativeConverter
<T, Pointer> NativeClosureManager.newClosureSite
(Class<T> closureClass) Methods in jnr.ffi.provider.jffi with parameters of type PointerModifier and TypeMethodDescriptionlong
ClosureFromNativeConverter.ProxyConverter.fromNative
(Pointer nativeValue, FromNativeContext context) (package private) static Variable
ReflectionVariableAccessorGenerator.getNativeVariableAccessor
(Pointer memory, ToNativeType toNativeType, FromNativeType fromNativeType) static int
static boolean
static long
private static PointerParameterStrategy
AsmRuntime.otherPointerParameterStrategy
(Pointer pointer) static PointerParameterStrategy
AsmRuntime.pointerParameterStrategy
(Pointer pointer) void
void
void
void
void
void
void
void
ArrayMemoryIO.putPointer
(long offset, Pointer value) void
ByteBufferMemoryIO.putPointer
(long offset, Pointer value) void
DirectMemoryIO.putPointer
(long offset, Pointer value) void
void
X86Disassembler.setInputBuffer
(Pointer buffer, int size) void
DirectMemoryIO.transferFrom
(long offset, Pointer other, long otherOffset, long count) void
DirectMemoryIO.transferTo
(long offset, Pointer other, long otherOffset, long count) void
void
X86Disassembler.UDis86.ud_set_input_buffer
(X86Disassembler ud, Pointer data, long len) Constructors in jnr.ffi.provider.jffi with parameters of type PointerModifierConstructorDescriptionprotected
AbstractVariable
(Pointer memory) private
NumberVariable
(Pointer memory, ReflectionVariableAccessorGenerator.PointerOp<Number> pointerOp, DataConverter<Number, Number> dataConverter, DefaultInvokerFactory.ResultConverter<? extends Number, Number> resultConverter) private
PointerVariable
(Pointer memory)
ObjectReferenceManager.add(Object)