Uses of Class
org.bytedeco.javacpp.Pointer
-
Packages that use Pointer Package Description org.bytedeco.javacpp Contains the main set of classes for JavaCPP at runtime.org.bytedeco.javacpp.indexer 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 Pointer Modifier and Type Class Description class
PointerPointer<P extends Pointer>
The peer class to native pointers and arrays ofvoid*
.Subclasses of Pointer in org.bytedeco.javacpp Modifier and Type Class Description class
BooleanPointer
The peer class to native pointers and arrays ofjboolean
.class
BoolPointer
The peer class to native pointers and arrays ofbool
.class
BytePointer
The peer class to native pointers and arrays ofsigned char
, including strings.class
CharPointer
The peer class to native pointers and arrays ofshort
for UTF-16.class
CLongPointer
The peer class to native pointers and arrays oflong
.class
DoublePointer
The peer class to native pointers and arrays ofdouble
.class
FloatPointer
The peer class to native pointers and arrays offloat
.class
FunctionPointer
All peer classes to function pointers must derive from FunctionPointer.class
IntPointer
The peer class to native pointers and arrays ofint
, also used for UTF-32.class
LongPointer
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
ShortPointer
The peer class to native pointers and arrays ofshort
.class
SizeTPointer
The peer class to native pointers and arrays ofsize_t
.Fields in org.bytedeco.javacpp declared as Pointer Modifier and Type Field Description (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 Pointer Modifier and Type Field Description (package private) static java.util.WeakHashMap<java.lang.Class<? extends Pointer>,java.util.HashMap<java.lang.String,java.lang.Integer>>
Loader. memberOffsets
Containsoffsetof()
andsizeof()
values of native types ofstruct
,class
, andunion
.(package private) java.util.Deque<Pointer>
PointerScope. pointerStack
The stack keeping references to attachedPointer
objects.private static java.lang.ref.ReferenceQueue<Pointer>
Pointer. referenceQueue
TheReferenceQueue
used byPointer.DeallocatorReference
.Methods in org.bytedeco.javacpp with type parameters of type Pointer Modifier and Type Method Description <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(java.lang.Class<P> type)
ReturnsgetPointer(type, 0)
.<P extends Pointer>
PPointer. getPointer(java.lang.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>
PPointer. put(Pointer p)
Calls 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 Pointer Modifier and Type Method Description static Pointer
Loader. addressof(java.lang.String symbol)
ReturnsLoader.Helper.addressof(String)
.static Pointer
Loader.Helper. addressof(java.lang.String symbol)
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)
Pointer
PointerPointer. get()
Pointer
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.Pointer
BytePointer. getPointerValue()
ReturnsgetPointerValue(0)
.Pointer
BytePointer. getPointerValue(long i)
Returns thePointer
value at the i-thbyte
in the native array.static Pointer
Pointer. malloc(long size)
static Pointer
Pointer. memchr(Pointer p, int ch, long size)
static Pointer
Pointer. memcpy(Pointer dst, Pointer src, long size)
static Pointer
Pointer. memmove(Pointer dst, Pointer src, long size)
static Pointer
Pointer. memset(Pointer dst, int ch, long size)
static Pointer
Loader.Helper. newGlobalRef(java.lang.Object object)
Returns a JNI global reference stored in a Pointer for the given Object.static Pointer
Loader. newGlobalRef(java.lang.Object object)
ReturnsLoader.Helper.newGlobalRef(Object)
.static Pointer
Pointer. realloc(Pointer p, long size)
Methods in org.bytedeco.javacpp that return types with arguments of type Pointer Modifier and Type Method Description java.lang.Class<? extends Pointer>[]
PointerScope. forClasses()
Methods in org.bytedeco.javacpp with parameters of type Pointer Modifier and Type Method Description static java.lang.Object
Loader. accessGlobalRef(Pointer globalRef)
static java.lang.Object
Loader.Helper. accessGlobalRef(Pointer globalRef)
Returns an Object from the JNI global reference stored in the Pointer.PointerScope
PointerScope. attach(Pointer p)
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.PointerScope
PointerScope. detach(Pointer p)
Removes the Pointer from thePointerScope.pointerStack
of this Scope and callsreleaseReference()
.static void
Pointer. free(Pointer p)
static boolean
Pointer. isNull(Pointer p)
Returnsp == null || p.address == 0
.static Pointer
Pointer. memchr(Pointer p, int ch, long size)
static int
Pointer. memcmp(Pointer p1, Pointer p2, long size)
static Pointer
Pointer. memcpy(Pointer dst, Pointer src, long size)
static Pointer
Pointer. memmove(Pointer dst, Pointer src, long size)
static Pointer
Pointer. memset(Pointer dst, int ch, long size)
<P extends Pointer>
PPointer. put(Pointer p)
Calls in effectmemcpy(this.address + this.position, p.address + p.position, length)
, wherelength = sizeof(p) * (p.limit - p.position)
.PointerPointer<P>
PointerPointer. put(long i, Pointer p)
Copies the Pointer value to the i-th element of a native array.PointerPointer<P>
PointerPointer. put(Pointer p)
PointerPointer<P>
PointerPointer. put(P... array)
Writes the Pointer values into the nativevoid*
array.BytePointer
BytePointer. putPointerValue(long i, Pointer p)
Sets thePointer
value at the i-thbyte
in the native array.BytePointer
BytePointer. putPointerValue(Pointer p)
ReturnsputPointerValue(0, s)
.static Pointer
Pointer. realloc(Pointer p, long size)
Method parameters in org.bytedeco.javacpp with type arguments of type Pointer Modifier and Type Method Description static int
Loader. offsetof(java.lang.Class<? extends Pointer> type, java.lang.String member)
Getsoffsetof()
values fromLoader.memberOffsets
filled by native libraries.static int
Pointer. offsetof(java.lang.Class<? extends Pointer> type, java.lang.String member)
ReturnsLoader.offsetof(type, member)
.(package private) static void
Loader. putMemberOffset(java.lang.Class<? extends Pointer> type, java.lang.String member, int offset)
static int
Loader. sizeof(java.lang.Class<? extends Pointer> type)
Getssizeof()
values fromLoader.memberOffsets
filled by native libraries.static int
Pointer. sizeof(java.lang.Class<? extends Pointer> type)
ReturnsLoader.sizeof(type)
.Constructors in org.bytedeco.javacpp with parameters of type Pointer Constructor Description BooleanPointer(Pointer p)
BoolPointer(Pointer p)
BytePointer(Pointer p)
CharPointer(Pointer p)
CLongPointer(Pointer p)
CustomDeallocator(Pointer p)
DeallocatorReference(Pointer p, Pointer.Deallocator deallocator)
DoublePointer(Pointer p)
FloatPointer(Pointer p)
FunctionPointer(Pointer p)
IntPointer(Pointer p)
LongPointer(Pointer p)
NativeDeallocator(Pointer p, long ownerAddress, long deallocatorAddress)
Pointer(Pointer p)
Copies the address, position, limit, and capacity of another Pointer.PointerPointer(Pointer p)
PointerPointer(P... array)
Allocates enough memory for the array and copies it.ProxyDeallocator(Pointer p, java.nio.Buffer b)
ProxyDeallocator(Pointer p, Pointer p2)
ShortPointer(Pointer p)
SizeTPointer(Pointer p)
-
Uses of Pointer in org.bytedeco.javacpp.indexer
Methods in org.bytedeco.javacpp.indexer that return Pointer Modifier and Type Method Description Pointer
Bfloat16RawIndexer. pointer()
Pointer
BooleanRawIndexer. pointer()
Pointer
ByteRawIndexer. pointer()
Pointer
CharRawIndexer. pointer()
Pointer
DoubleRawIndexer. pointer()
Pointer
FloatRawIndexer. pointer()
Pointer
HalfRawIndexer. pointer()
Pointer
Indexer. pointer()
Returns the backing pointer, ornull
if nonePointer
IntRawIndexer. pointer()
Pointer
LongRawIndexer. pointer()
Pointer
ShortRawIndexer. pointer()
Pointer
UByteRawIndexer. pointer()
Pointer
UIntRawIndexer. pointer()
Pointer
ULongRawIndexer. pointer()
Pointer
UShortRawIndexer. pointer()
-