Uses of Class
org.bytedeco.javacpp.Pointer
Packages that use Pointer
Package
Description
Contains the main set of classes for JavaCPP at runtime.
Contains classes for multidimensional access of arrays and buffers.
-
Uses of Pointer in org.bytedeco.javacpp
Classes in org.bytedeco.javacpp with type parameters of type PointerModifier and TypeClassDescriptionclassPointerPointer<P extends Pointer>The peer class to native pointers and arrays ofvoid*.Subclasses of Pointer in org.bytedeco.javacppModifier and TypeClassDescriptionclassThe peer class to native pointers and arrays ofjboolean.classThe peer class to native pointers and arrays ofbool.classThe peer class to native pointers and arrays ofsigned char, including strings.classThe peer class to native pointers and arrays ofshortfor UTF-16.classThe peer class to native pointers and arrays oflong.classThe peer class to native pointers and arrays ofdouble.classThe peer class to native pointers and arrays offloat.classAll peer classes to function pointers must derive from FunctionPointer.classThe peer class to native pointers and arrays ofint, also used for UTF-32.classThe peer class to native pointers and arrays oflong long.classPointerPointer<P extends Pointer>The peer class to native pointers and arrays ofvoid*.classThe peer class to native pointers and arrays ofshort.classThe peer class to native pointers and arrays ofsize_t.Subclasses with type arguments of type Pointer in org.bytedeco.javacppModifier and TypeClassDescription(package private) static classA subclass ofPhantomReferencethat also acts as a linked list to keep their references alive until they get garbage collected.Fields in org.bytedeco.javacpp declared as PointerModifier and TypeFieldDescription(package private) PointerPointer.CustomDeallocator.pointer(package private) PointerPointer.ProxyDeallocator.pointerprivate P[]PointerPointer.pointerArrayThis is just to keep references to Pointer objects and prevent premature deallocation.Fields in org.bytedeco.javacpp with type parameters of type PointerModifier and TypeFieldDescriptionLoader.memberOffsetsContainsoffsetof()andsizeof()values of native types ofstruct,class, andunion.PointerScope.pointerStackThe stack keeping references to attachedPointerobjects.private static final ReferenceQueue<Pointer> Pointer.referenceQueueTheReferenceQueueused byPointer.DeallocatorReference.Methods in org.bytedeco.javacpp with type parameters of type PointerModifier and TypeMethodDescription<P extends Pointer>
PPointer.capacity(long capacity) Sets the capacity and returns this.protected <P extends Pointer>
PPointer.deallocator(Pointer.Deallocator deallocator) Sets the deallocator and returns this.<P extends Pointer>
PPointer.fill(int b) Calls in effectmemset(address + position, b, length), wherelength = sizeof() * (limit - position).<P extends Pointer>
PPointer.getPointer()ReturnsgetPointer(0).<P extends Pointer>
PPointer.getPointer(long i) ReturnsgetPointer(getClass(), i).<P extends Pointer>
PPointer.getPointer(Class<P> type) ReturnsgetPointer(type, 0).<P extends Pointer>
PPointer.getPointer(Class<P> type, long i) Returnsnew P(this).offsetAddress(i)after scalingPointer.position,Pointer.limit, andPointer.capacitywithPointer.sizeof().<P extends Pointer>
PPointer.limit(long limit) Sets the limit and returns this.protected <P extends Pointer>
PPointer.offsetAddress(long i) <P extends Pointer>
PPointer.position(long position) Sets the position and returns this.<P extends Pointer>
PCalls in effectmemcpy(this.address + this.position, p.address + p.position, length), wherelength = sizeof(p) * (p.limit - p.position).<P extends Pointer>
PPointer.retainReference()CallsPointer.ReferenceCounter.retain(), incrementing the reference count by 1.protected static <P extends Pointer>
PPointer.withDeallocator(P p) A utility method to register easily aPointer.CustomDeallocatorwith a Pointer.<P extends Pointer>
PPointer.zero()Returnsfill(0).Methods in org.bytedeco.javacpp that return PointerModifier and TypeMethodDescriptionstatic PointerReturnsLoader.Helper.addressof(String).static PointerReturns the address found under the given name in the "dynamic symbol tables" (Linux, Mac OS X, etc) or the "export tables" (Windows) of all libraries loaded, or null if not found.static PointerPointer.calloc(long n, long size) PointerPointer.get()PointerPointer.get(long i) static PointerLoader.getJavaVM()ReturnsLoader.Helper.getJavaVM().static PointerLoader.Helper.getJavaVM()Returns the JavaVM JNI object, as required by some APIs for initialization.BytePointer.getPointerValue()ReturnsgetPointerValue(0).BytePointer.getPointerValue(long i) Returns thePointervalue at the i-thbytein the native array.static PointerPointer.malloc(long size) static Pointerstatic Pointerstatic Pointerstatic Pointerstatic PointerLoader.Helper.newGlobalRef(Object object) Returns a JNI global reference stored in a Pointer for the given Object.static PointerLoader.newGlobalRef(Object object) ReturnsLoader.Helper.newGlobalRef(Object).static PointerMethods in org.bytedeco.javacpp that return types with arguments of type PointerMethods in org.bytedeco.javacpp with parameters of type PointerModifier and TypeMethodDescriptionstatic ObjectLoader.accessGlobalRef(Pointer globalRef) static ObjectLoader.Helper.accessGlobalRef(Pointer globalRef) Returns an Object from the JNI global reference stored in the Pointer.Pushes the Pointer onto thePointerScope.pointerStackof this Scope and callsPointer.retainReference().static voidLoader.deleteGlobalRef(Pointer globalRef) static voidLoader.Helper.deleteGlobalRef(Pointer globalRef) Deletes the JNI global reference stored in the Pointer.Removes the Pointer from thePointerScope.pointerStackof this Scope and callsPointer.releaseReference().static voidstatic booleanReturnsp == null || p.address == 0.static Pointerstatic intstatic Pointerstatic Pointerstatic Pointer<P extends Pointer>
PCalls in effectmemcpy(this.address + this.position, p.address + p.position, length), wherelength = sizeof(p) * (p.limit - p.position).Copies the Pointer value to the i-th element of a native array.Writes the Pointer values into the nativevoid*array.BytePointer.putPointerValue(long i, Pointer p) Sets thePointervalue at the i-thbytein the native array.BytePointer.putPointerValue(Pointer p) ReturnsputPointerValue(0, s).static PointerMethod parameters in org.bytedeco.javacpp with type arguments of type PointerModifier and TypeMethodDescriptionstatic intGetsoffsetof()values fromLoader.memberOffsetsfilled by native libraries.static intReturnsLoader.offsetof(type, member).(package private) static voidLoader.putMemberOffset(Class<? extends Pointer> type, String member, int offset) static intGetssizeof()values fromLoader.memberOffsetsfilled by native libraries.static intReturnsLoader.sizeof(type).Constructors in org.bytedeco.javacpp with parameters of type PointerModifierConstructorDescription(package private)DeallocatorReference(Pointer p, Pointer.Deallocator deallocator) protected(package private)NativeDeallocator(Pointer p, long ownerAddress, long deallocatorAddress) Copies the address, position, limit, and capacity of another Pointer.PointerPointer(P... array) Allocates enough memory for the array and copies it.ProxyDeallocator(Pointer p, Buffer b) ProxyDeallocator(Pointer p, Pointer p2) -
Uses of Pointer in org.bytedeco.javacpp.indexer
Methods in org.bytedeco.javacpp.indexer that return PointerModifier and TypeMethodDescriptionBfloat16RawIndexer.pointer()BooleanRawIndexer.pointer()ByteRawIndexer.pointer()CharRawIndexer.pointer()DoubleRawIndexer.pointer()FloatRawIndexer.pointer()HalfRawIndexer.pointer()Indexer.pointer()Returns the backing pointer, ornullif noneIntRawIndexer.pointer()LongRawIndexer.pointer()ShortRawIndexer.pointer()UByteRawIndexer.pointer()UIntRawIndexer.pointer()ULongRawIndexer.pointer()UShortRawIndexer.pointer()