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 TypeClassDescriptionclass
PointerPointer<P extends Pointer>
The peer class to native pointers and arrays ofvoid*
.Subclasses of Pointer in org.bytedeco.javacppModifier and TypeClassDescriptionclass
The peer class to native pointers and arrays ofjboolean
.class
The peer class to native pointers and arrays ofbool
.class
The peer class to native pointers and arrays ofsigned char
, including strings.class
The peer class to native pointers and arrays ofshort
for UTF-16.class
The peer class to native pointers and arrays oflong
.class
The peer class to native pointers and arrays ofdouble
.class
The peer class to native pointers and arrays offloat
.class
All peer classes to function pointers must derive from FunctionPointer.class
The peer class to native pointers and arrays ofint
, also used for UTF-32.class
The peer class to native pointers and arrays oflong long
.class
PointerPointer<P extends Pointer>
The peer class to native pointers and arrays ofvoid*
.class
The peer class to native pointers and arrays ofshort
.class
The peer class to native pointers and arrays ofsize_t
.Fields in org.bytedeco.javacpp declared as PointerModifier and TypeFieldDescription(package private) Pointer
Pointer.CustomDeallocator.pointer
(package private) Pointer
Pointer.ProxyDeallocator.pointer
private P[]
PointerPointer.pointerArray
This 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.memberOffsets
Containsoffsetof()
andsizeof()
values of native types ofstruct
,class
, andunion
.PointerScope.pointerStack
The stack keeping references to attachedPointer
objects.private static final ReferenceQueue
<Pointer> Pointer.referenceQueue
TheReferenceQueue
used 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) <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.CustomDeallocator
with a Pointer.<P extends Pointer>
PPointer.zero()
Returnsfill(0)
.Methods in org.bytedeco.javacpp that return PointerModifier and TypeMethodDescriptionstatic Pointer
ReturnsLoader.Helper.addressof(String)
.static Pointer
Returns 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 Pointer
Pointer.calloc
(long n, long size) PointerPointer.get()
PointerPointer.get
(long i) static Pointer
Loader.getJavaVM()
ReturnsLoader.Helper.getJavaVM()
.static Pointer
Loader.Helper.getJavaVM()
Returns the JavaVM JNI object, as required by some APIs for initialization.BytePointer.getPointerValue()
ReturnsgetPointerValue(0)
.BytePointer.getPointerValue
(long i) Returns thePointer
value at the i-thbyte
in the native array.static Pointer
Pointer.malloc
(long size) static Pointer
static Pointer
static Pointer
static Pointer
static Pointer
Loader.Helper.newGlobalRef
(Object object) Returns a JNI global reference stored in a Pointer for the given Object.static Pointer
Loader.newGlobalRef
(Object object) ReturnsLoader.Helper.newGlobalRef(Object)
.static Pointer
Methods in org.bytedeco.javacpp that return types with arguments of type PointerMethods in org.bytedeco.javacpp with parameters of type PointerModifier and TypeMethodDescriptionstatic Object
Loader.accessGlobalRef
(Pointer globalRef) static Object
Loader.Helper.accessGlobalRef
(Pointer globalRef) Returns an Object from the JNI global reference stored in the Pointer.Pushes the Pointer onto thePointerScope.pointerStack
of this Scope and callsretainReference()
.static void
Loader.deleteGlobalRef
(Pointer globalRef) static void
Loader.Helper.deleteGlobalRef
(Pointer globalRef) Deletes the JNI global reference stored in the Pointer.Removes the Pointer from thePointerScope.pointerStack
of this Scope and callsreleaseReference()
.static void
static boolean
Returnsp == null || p.address == 0
.static Pointer
static int
static Pointer
static Pointer
static 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 thePointer
value at the i-thbyte
in the native array.BytePointer.putPointerValue
(Pointer p) ReturnsputPointerValue(0, s)
.static Pointer
Method parameters in org.bytedeco.javacpp with type arguments of type PointerModifier and TypeMethodDescriptionstatic int
Getsoffsetof()
values fromLoader.memberOffsets
filled by native libraries.static int
ReturnsLoader.offsetof(type, member)
.(package private) static void
Loader.putMemberOffset
(Class<? extends Pointer> type, String member, int offset) static int
Getssizeof()
values fromLoader.memberOffsets
filled by native libraries.static int
ReturnsLoader.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, ornull
if noneIntRawIndexer.pointer()
LongRawIndexer.pointer()
ShortRawIndexer.pointer()
UByteRawIndexer.pointer()
UIntRawIndexer.pointer()
ULongRawIndexer.pointer()
UShortRawIndexer.pointer()