Uses of Class
jnr.ffi.Pointer
Packages that use Pointer
Package
Description
-
Uses of Pointer in jnr.ffi
Modifier and TypeMethodDescriptionabstract PointerAdds a mapping from a java object to a unique native address.static PointerAllocates a new block of java memory and wraps it in aPointeraccessor.static PointerMemory.allocate(Runtime runtime, NativeType type) Allocates a new block of java memory and wraps it in aPointeraccessor.static PointerAllocates a new block of java memory and wraps it in aPointeraccessor.static PointerAllocates a new block of java memory and wraps it in aPointeraccessor.static PointerMemory.allocateDirect(Runtime runtime, int size) Allocates a new block of native memory and wraps it in aPointeraccessor.static PointerMemory.allocateDirect(Runtime runtime, int size, boolean clear) Allocates a new block of native memory and wraps it in aPointeraccessor.static PointerMemory.allocateDirect(Runtime runtime, long size) Allocates a new block of native memory and wraps it in aPointeraccessor.static PointerMemory.allocateDirect(Runtime runtime, long size, boolean clear) Allocates a new block of native memory and wraps it in aPointeraccessor.static PointerMemory.allocateDirect(Runtime runtime, NativeType type) Allocates a new block of native memory and wraps it in aPointeraccessor.static PointerMemory.allocateDirect(Runtime runtime, TypeAlias type) Allocates a new block of native memory and wraps it in aPointeraccessor.static PointerMemory.allocateTemporary(Runtime runtime, NativeType type) Allocates a new block of transient native memory and wraps it in aPointeraccessor.static PointerMemory.allocateTemporary(Runtime runtime, NativeType type, boolean clear) Allocates a new block of transient native memory and wraps it in aPointeraccessor.static PointerMemory.allocateTemporary(Runtime runtime, TypeAlias type) Allocates a new block of transient native memory and wraps it in aPointeraccessor.final PointerStruct.Pointer.get()Gets thePointervalue from the native memory.final PointerGets thePointervalue from the native memory.final PointerStruct.AbstractMember.getMemory()static Pointerstatic Pointerfinal PointerStruct.NumberField.getMemory()Pointer[]Pointer.getNullTerminatedPointerArray(long offset) abstract PointerPointer.getPointer(long offset) Reads anPointervalue at the given offset.abstract PointerPointer.getPointer(long offset, long size) Reads anPointervalue at the given offset.protected final PointerStruct.PointerField.getPointer()Gets thePointervalue from the native memory.protected abstract PointerStruct.String.getStringMemory()protected PointerStruct.UTFString.getStringMemory()protected PointerStruct.UTFStringRef.getStringMemory()protected abstract PointerStructLayout.String.getStringMemory(Pointer ptr) protected PointerStructLayout.UTFString.getStringMemory(Pointer ptr) protected PointerStructLayout.UTFStringRef.getStringMemory(Pointer ptr) static PointerPointer.newIntPointer(Runtime runtime, long address) Wraps an integer value in an opaquePointerinstance.ObjectReferenceManager.newReference(T object) Deprecated.abstract PointerPointer.slice(long offset) Creates a newPointerrepresenting a sub-region of the memory referred to by thisPointer.abstract PointerPointer.slice(long offset, long size) Creates a newPointerrepresenting a sub-region of the memory referred to by thisPointer.static PointerWraps a native address in aPointerinstance.static PointerWraps a native address in aPointerinstance.static PointerPointer.wrap(Runtime runtime, ByteBuffer buffer) Wraps an existing ByteBuffer in aPointerimplementation so it can be used as a parameter to native functions.Modifier and TypeMethodDescriptionbyteReturns abyterepresentation of thisNumber.final byteReturns a java byte representation of this field.final doubleStructLayout.Double.doubleValue(Pointer ptr) final doubleStructLayout.Float.doubleValue(Pointer ptr) doubleStructLayout.NumberField.doubleValue(Pointer ptr) Returns anfloatrepresentation of thisNumber.final floatStructLayout.Double.floatValue(Pointer ptr) final floatStructLayout.Float.floatValue(Pointer ptr) floatStructLayout.NumberField.floatValue(Pointer ptr) Returns anfloatrepresentation of thisNumber.voidObjectReferenceManager.freeReference(Pointer reference) Deprecated.abstract TGets the java object that is mapped to the native memory address referred to byreference.voidBulk get method for multiplePointervalues.abstract booleanGets the value for this field.final booleanfinal booleanfinal doubleGets a java Enum value representing the native integer value.final floatfinal longGets the value for this field.final PointerGets thePointervalue from the native memory.final shortGets the value for this field.final intGets the value for this field.final longGets the value for this field.final byteGets the value for this field.final longGets the value for this field.abstract Stringfinal intGets the value for this field.final longGets the value for this field.final longGets the value for this field.final shortGets the value for this field.final longGets the value for this field.final Stringfinal Stringfinal booleanDeprecated.protected abstract PointerStructLayout.String.getStringMemory(Pointer ptr) protected PointerStructLayout.UTFString.getStringMemory(Pointer ptr) protected PointerStructLayout.UTFStringRef.getStringMemory(Pointer ptr) final intfinal intfinal intfinal intfinal intReturns an integer representation of this enum field.final intfinal intintabstract intReturns aintrepresentation of thisNumber.final intReturns an integer representation of thisPointer.final intReturns a java int representation of this field.final intReturns a java int representation of this field.final intReturns a java int representation of this field.final intReturns a java int representation of this field.final intReturns a java int representation of this field.final intReturns a java int representation of this field.final intReturns a java int representation of this field.final intReturns a java int representation of this field.final intReturns a java int representation of this field.final intReturns a java int representation of this field.final longfinal longfinal longfinal longlonglongReturns alongrepresentation of thisNumber.final longReturns anlongrepresentation of thisPointer.final longReturns a java long representation of this field.final longReturns a java long representation of this field.final longReturns a java long representation of this field.final longReturns a java long representation of this field.final longReturns a java long representation of this field.voidBulk put method for multiplePointervalues.abstract voidPointer.putPointer(long offset, Pointer value) Writes aPointervalue at the given offset.abstract booleanRemoves a mapping from java object to native pointer.final voidPuts aAddressvalue into the native memory.abstract voidSets the field to a new value.final voidfinal voidfinal voidvoidvoidvoidvoidvoidfinal voidvoidfinal voidSets the native integer value using a java Enum value.voidfinal voidvoidfinal voidvoidfinal voidvoidvoidabstract voidSets the field to a new value.voidfinal voidSets aPointervalue in the native memory.final voidSets the value for this field.voidfinal voidSets the value for this field.voidfinal voidSets the value for this field.voidfinal voidSets the value for this field.voidfinal voidSets the value for this field.voidabstract voidfinal voidSets the value for this field.voidfinal voidSets the value for this field.voidfinal voidSets the value for this field.voidfinal voidSets the value for this field.voidfinal voidSets the value for this field.voidfinal voidfinal voidfinal voidshortStructLayout.NumberField.shortValue(Pointer ptr) Returns ashortrepresentation of thisNumber.final shortStructLayout.Signed16.shortValue(Pointer ptr) Returns a java short representation of this field.final shortStructLayout.Signed8.shortValue(Pointer ptr) Returns a java short representation of this field.final shortStructLayout.Unsigned8.shortValue(Pointer ptr) Returns a java short representation of this field.Returns a string representation of thisBoolean.final Stringfinal StringReturns a string representation of this field.final StringReturns a string representation of thisNumber.final StringReturns a string representation of thisPointer.final StringReturns a string representation of this field.final StringReturns a string representation of this field.final Stringfinal StringReturns a string representation of this field.final StringReturns a string representation of this field.abstract voidPointer.transferFrom(long offset, Pointer src, long srcOffset, long count) Bulk data transfer from one memory location to another.abstract voidPointer.transferTo(long offset, Pointer dst, long dstOffset, long count) Bulk data transfer from one memory location to another.final voidUses 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 TypeMethodDescriptionvoidAddressByReference.fromNative(Runtime runtime, Pointer memory, long offset) Copies the address value from native memoryvoidByReference.fromNative(Runtime runtime, Pointer memory, long offset) Copies the java value from native memoryvoidByteByReference.fromNative(Runtime runtime, Pointer buffer, long offset) Copies the Byte value from native memoryvoidDoubleByReference.fromNative(Runtime runtime, Pointer buffer, long offset) Copies the double value from native memoryvoidFloatByReference.fromNative(Runtime runtime, Pointer buffer, long offset) Copies the float value from native memoryvoidIntByReference.fromNative(Runtime runtime, Pointer buffer, long offset) Copies the integer value from native memoryvoidLongLongByReference.fromNative(Runtime runtime, Pointer memory, long offset) Copies the value from native memoryvoidNativeLongByReference.fromNative(Runtime runtime, Pointer memory, long offset) Copies the long value from native memoryvoidNumberByReference.fromNative(Runtime runtime, Pointer memory, long offset) final voidPointerByReference.fromNative(Runtime runtime, Pointer memory, long offset) voidShortByReference.fromNative(Runtime runtime, Pointer buffer, long offset) Copies the short value from native memoryvoidCopies the address value to native memoryvoidCopies the java value to native memoryvoidCopies the Byte value to native memoryvoidCopies the double value to native memoryvoidCopies the float value to native memoryvoidCopies the integer value to native memoryvoidCopies the value to native memoryvoidCopies the long value to native memoryvoidfinal voidvoidCopies 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 TypeClassDescriptionclassclassclassBase implementations of some MemoryIO operations.final classclassfinal classfinal classclassMethods 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> PointerClosureManager.getClosurePointer(Class<? extends T> closureClass, T instance) BoundedMemoryIO.getDelegatedMemoryIO()DelegatingMemoryIO.getDelegatedMemoryIO()final PointerShareMemoryIO.getDelegatedMemoryIO()BoundedMemoryIO.getPointer(long offset) BoundedMemoryIO.getPointer(long offset, long size) final PointerInAccessibleMemoryIO.getPointer(long offset) final PointerInAccessibleMemoryIO.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 TypeMethodDescriptionvoidBoundedMemoryIO.putPointer(long offset, Pointer value) final voidInAccessibleMemoryIO.putPointer(long offset, Pointer value) voidShareMemoryIO.putPointer(long offset, Pointer value) booleanvoidAbstractMemoryIO.transferFrom(long offset, Pointer other, long otherOffset, long count) voidBoundedMemoryIO.transferFrom(long offset, Pointer other, long otherOffset, long count) voidAbstractMemoryIO.transferTo(long offset, Pointer other, long otherOffset, long count) voidBoundedMemoryIO.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
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) voidByReferenceParameterConverter.Out.postInvoke(ByReference byReference, Pointer pointer, ToNativeContext context) voidCharSequenceArrayParameterConverter.Out.postInvoke(CharSequence[] array, Pointer primitive, ToNativeContext context) voidPointer32ArrayParameterConverter.Out.postInvoke(Pointer[] pointers, int[] primitive, ToNativeContext context) voidPointer64ArrayParameterConverter.Out.postInvoke(Pointer[] pointers, long[] primitive, ToNativeContext context) voidStructArrayParameterConverter.Out.postInvoke(Struct[] structs, Pointer primitive, ToNativeContext context) int[]Pointer32ArrayParameterConverter.toNative(Pointer[] pointers, ToNativeContext context) long[]Pointer64ArrayParameterConverter.toNative(Pointer[] pointers, ToNativeContext context) -
Uses of Pointer in jnr.ffi.provider.jffi
Subclasses of Pointer in jnr.ffi.provider.jffiModifier and TypeClassDescriptionfinal classclassstatic classclassMethods 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) ArrayMemoryIO.getPointer(long offset) ArrayMemoryIO.getPointer(long offset, long size) ByteBufferMemoryIO.getPointer(long offset) ByteBufferMemoryIO.getPointer(long offset, long size) NativeMemoryManager.newOpaquePointer(long address) NativeMemoryManager.newPointer(long address) NativeMemoryManager.newPointer(long address, long size) NativeMemoryManager.newPointer(ByteBuffer buffer) static PointerAsmRuntime.pointerValue(int ptr, Runtime runtime) static PointerAsmRuntime.pointerValue(long ptr, Runtime runtime) Methods in jnr.ffi.provider.jffi that return types with arguments of type PointerModifier and TypeMethodDescriptionstatic FromNativeConverter<?,Pointer> ClosureFromNativeConverter.getInstance(Runtime runtime, SignatureType type, jnr.ffi.provider.jffi.AsmClassLoader classLoader, SignatureTypeMapper typeMapper) AsmStructByReferenceFromNativeConverter.nativeType()ClosureFromNativeConverter.nativeType()Methods in jnr.ffi.provider.jffi with parameters of type PointerModifier and TypeMethodDescriptionlongClosureFromNativeConverter.ProxyConverter.fromNative(Pointer nativeValue, FromNativeContext context) static intstatic booleanstatic longstatic PointerParameterStrategyAsmRuntime.pointerParameterStrategy(Pointer pointer) voidArrayMemoryIO.putPointer(long offset, Pointer value) voidByteBufferMemoryIO.putPointer(long offset, Pointer value)
ObjectReferenceManager.add(Object)