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.
|
Modifier and Type | Class and Description |
---|---|
class |
PointerPointer<P extends Pointer>
The peer class to native pointers and arrays of
void* . |
class |
PointerPointer<P extends Pointer>
The peer class to native pointers and arrays of
void* . |
Modifier and Type | Class and Description |
---|---|
class |
BooleanPointer
The peer class to native pointers and arrays of
jboolean . |
class |
BoolPointer
The peer class to native pointers and arrays of
bool . |
class |
BytePointer
The peer class to native pointers and arrays of
signed char , including strings. |
class |
CharPointer
The peer class to native pointers and arrays of
short for UTF-16. |
class |
CLongPointer
The peer class to native pointers and arrays of
long . |
class |
DoublePointer
The peer class to native pointers and arrays of
double . |
class |
FloatPointer
The peer class to native pointers and arrays of
float . |
class |
FunctionPointer
All peer classes to function pointers must derive from FunctionPointer.
|
class |
IntPointer
The peer class to native pointers and arrays of
int , also used for UTF-32. |
class |
LongPointer
The peer class to native pointers and arrays of
long long . |
class |
PointerPointer<P extends Pointer>
The peer class to native pointers and arrays of
void* . |
class |
ShortPointer
The peer class to native pointers and arrays of
short . |
class |
SizeTPointer
The peer class to native pointers and arrays of
size_t . |
Modifier and Type | Field and Description |
---|---|
(package private) Pointer |
Pointer.CustomDeallocator.pointer |
(package private) Pointer |
Pointer.ProxyDeallocator.pointer |
(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.
|
private P[] |
PointerPointer.pointerArray
This is just to keep references to Pointer objects and prevent premature deallocation.
|
Modifier and Type | Field and Description |
---|---|
(package private) static WeakHashMap<Class<? extends Pointer>,HashMap<String,Integer>> |
Loader.memberOffsets
Contains
offsetof() and sizeof() values of native types
of struct , class , and union . |
(package private) static WeakHashMap<Class<? extends Pointer>,HashMap<String,Integer>> |
Loader.memberOffsets
Contains
offsetof() and sizeof() values of native types
of struct , class , and union . |
(package private) Deque<Pointer> |
PointerScope.pointerStack
The stack keeping references to attached
Pointer objects. |
(package private) Deque<Pointer> |
PointerScope.pointerStack
The stack keeping references to attached
Pointer objects. |
private static ReferenceQueue<Pointer> |
Pointer.referenceQueue
The
ReferenceQueue used by Pointer.DeallocatorReference . |
private static ReferenceQueue<Pointer> |
Pointer.referenceQueue
The
ReferenceQueue used by Pointer.DeallocatorReference . |
Modifier and Type | Method and Description |
---|---|
<P extends Pointer> |
Pointer.capacity(long capacity)
Sets the capacity and returns this.
|
<P extends Pointer> |
Pointer.capacity(long capacity)
Sets the capacity and returns this.
|
protected <P extends Pointer> |
Pointer.deallocator(Pointer.Deallocator deallocator)
Sets the deallocator and returns this.
|
protected <P extends Pointer> |
Pointer.deallocator(Pointer.Deallocator deallocator)
Sets the deallocator and returns this.
|
<P extends Pointer> |
Pointer.fill(int b)
Calls in effect
memset(address + position, b, length) ,
where length = sizeof() * (limit - position) . |
<P extends Pointer> |
Pointer.fill(int b)
Calls in effect
memset(address + position, b, length) ,
where length = sizeof() * (limit - position) . |
<P extends Pointer> |
Pointer.getPointer()
Returns
getPointer(0) . |
<P extends Pointer> |
Pointer.getPointer()
Returns
getPointer(0) . |
<P extends Pointer> |
Pointer.getPointer(Class<P> type)
Returns
getPointer(type, 0) . |
<P extends Pointer> |
Pointer.getPointer(Class<P> type)
Returns
getPointer(type, 0) . |
<P extends Pointer> |
Pointer.getPointer(Class<P> type,
long i)
|
<P extends Pointer> |
Pointer.getPointer(Class<P> type,
long i)
|
<P extends Pointer> |
Pointer.getPointer(long i)
Returns
getPointer(getClass(), i) . |
<P extends Pointer> |
Pointer.getPointer(long i)
Returns
getPointer(getClass(), i) . |
<P extends Pointer> |
Pointer.limit(long limit)
Sets the limit and returns this.
|
<P extends Pointer> |
Pointer.limit(long limit)
Sets the limit and returns this.
|
protected <P extends Pointer> |
Pointer.offsetAddress(long i)
|
protected <P extends Pointer> |
Pointer.offsetAddress(long i)
|
<P extends Pointer> |
Pointer.position(long position)
Sets the position and returns this.
|
<P extends Pointer> |
Pointer.position(long position)
Sets the position and returns this.
|
<P extends Pointer> |
Pointer.put(Pointer p)
Calls in effect
memcpy(this.address + this.position, p.address + p.position, length) ,
where length = sizeof(p) * (p.limit - p.position) . |
<P extends Pointer> |
Pointer.put(Pointer p)
Calls in effect
memcpy(this.address + this.position, p.address + p.position, length) ,
where length = sizeof(p) * (p.limit - p.position) . |
<P extends Pointer> |
Pointer.retainReference()
Calls
Pointer.ReferenceCounter.retain() , incrementing the reference count by 1. |
<P extends Pointer> |
Pointer.retainReference()
Calls
Pointer.ReferenceCounter.retain() , incrementing the reference count by 1. |
protected static <P extends Pointer> |
Pointer.withDeallocator(P p)
A utility method to register easily a
Pointer.CustomDeallocator with a Pointer. |
protected static <P extends Pointer> |
Pointer.withDeallocator(P p)
A utility method to register easily a
Pointer.CustomDeallocator with a Pointer. |
<P extends Pointer> |
Pointer.zero()
Returns
fill(0) . |
<P extends Pointer> |
Pointer.zero()
Returns
fill(0) . |
Modifier and Type | Method and Description |
---|---|
static Pointer |
Loader.addressof(String symbol)
Returns
Loader.Helper.addressof(String) . |
static Pointer |
Loader.Helper.addressof(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 |
Loader.addressof(String symbol)
Returns
Loader.Helper.addressof(String) . |
static Pointer |
Loader.Helper.addressof(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) |
static Pointer |
Pointer.calloc(long n,
long size) |
Pointer |
PointerPointer.get() |
Pointer |
PointerPointer.get() |
Pointer |
PointerPointer.get(long i) |
Pointer |
PointerPointer.get(long i) |
static Pointer |
Loader.getJavaVM()
Returns
Loader.Helper.getJavaVM() . |
static Pointer |
Loader.Helper.getJavaVM()
Returns the JavaVM JNI object, as required by some APIs for initialization.
|
static Pointer |
Loader.getJavaVM()
Returns
Loader.Helper.getJavaVM() . |
static Pointer |
Loader.Helper.getJavaVM()
Returns the JavaVM JNI object, as required by some APIs for initialization.
|
Pointer |
BytePointer.getPointerValue()
Returns
getPointerValue(0) . |
Pointer |
BytePointer.getPointerValue()
Returns
getPointerValue(0) . |
Pointer |
BytePointer.getPointerValue(long i)
Returns the
Pointer value at the i-th byte in the native array. |
Pointer |
BytePointer.getPointerValue(long i)
Returns the
Pointer value at the i-th byte in the native array. |
static Pointer |
Pointer.malloc(long size) |
static Pointer |
Pointer.malloc(long size) |
static Pointer |
Pointer.memchr(Pointer p,
int ch,
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.memcpy(Pointer dst,
Pointer src,
long size) |
static Pointer |
Pointer.memmove(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 |
Pointer.memset(Pointer dst,
int ch,
long size) |
static Pointer |
Loader.newGlobalRef(Object object)
Returns
Loader.Helper.newGlobalRef(Object) . |
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)
Returns
Loader.Helper.newGlobalRef(Object) . |
static Pointer |
Loader.Helper.newGlobalRef(Object object)
Returns a JNI global reference stored in a Pointer for the given Object.
|
static Pointer |
Pointer.realloc(Pointer p,
long size) |
static Pointer |
Pointer.realloc(Pointer p,
long size) |
Modifier and Type | Method and Description |
---|---|
static Object |
Loader.accessGlobalRef(Pointer globalRef)
|
static Object |
Loader.Helper.accessGlobalRef(Pointer globalRef)
Returns an Object from the JNI global reference stored in the Pointer.
|
static Object |
Loader.accessGlobalRef(Pointer globalRef)
|
static 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 the
PointerScope.pointerStack of this Scope and calls retainReference() . |
PointerScope |
PointerScope.attach(Pointer p)
Pushes the Pointer onto the
PointerScope.pointerStack of this Scope and calls retainReference() . |
static void |
Loader.deleteGlobalRef(Pointer globalRef)
|
static void |
Loader.Helper.deleteGlobalRef(Pointer globalRef)
Deletes the JNI global reference stored in the Pointer.
|
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 the
PointerScope.pointerStack of this Scope
and calls releaseReference() . |
PointerScope |
PointerScope.detach(Pointer p)
Removes the Pointer from the
PointerScope.pointerStack of this Scope
and calls releaseReference() . |
static void |
Pointer.free(Pointer p) |
static void |
Pointer.free(Pointer p) |
static boolean |
Pointer.isNull(Pointer p)
Returns
p == null || p.address == 0 . |
static boolean |
Pointer.isNull(Pointer p)
Returns
p == null || p.address == 0 . |
static Pointer |
Pointer.memchr(Pointer p,
int ch,
long size) |
static Pointer |
Pointer.memchr(Pointer p,
int ch,
long size) |
static int |
Pointer.memcmp(Pointer p1,
Pointer p2,
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.memcpy(Pointer dst,
Pointer src,
long size) |
static Pointer |
Pointer.memmove(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 |
Pointer.memset(Pointer dst,
int ch,
long size) |
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(long i,
Pointer p)
Copies the Pointer value to the i-th element of a native array.
|
PointerPointer<P> |
PointerPointer.put(P... array)
Writes the Pointer values into the native
void* array. |
PointerPointer<P> |
PointerPointer.put(P... array)
Writes the Pointer values into the native
void* array. |
PointerPointer<P> |
PointerPointer.put(Pointer p) |
PointerPointer<P> |
PointerPointer.put(Pointer p) |
<P extends Pointer> |
Pointer.put(Pointer p)
Calls in effect
memcpy(this.address + this.position, p.address + p.position, length) ,
where length = sizeof(p) * (p.limit - p.position) . |
<P extends Pointer> |
Pointer.put(Pointer p)
Calls in effect
memcpy(this.address + this.position, p.address + p.position, length) ,
where length = sizeof(p) * (p.limit - p.position) . |
BytePointer |
BytePointer.putPointerValue(long i,
Pointer p)
Sets the
Pointer value at the i-th byte in the native array. |
BytePointer |
BytePointer.putPointerValue(long i,
Pointer p)
Sets the
Pointer value at the i-th byte in the native array. |
BytePointer |
BytePointer.putPointerValue(Pointer p)
Returns
putPointerValue(0, s) . |
BytePointer |
BytePointer.putPointerValue(Pointer p)
Returns
putPointerValue(0, s) . |
static Pointer |
Pointer.realloc(Pointer p,
long size) |
static Pointer |
Pointer.realloc(Pointer p,
long size) |
Modifier and Type | Method and Description |
---|---|
static int |
Loader.offsetof(Class<? extends Pointer> type,
String member)
Gets
offsetof() values from Loader.memberOffsets filled by native libraries. |
static int |
Pointer.offsetof(Class<? extends Pointer> type,
String member)
Returns
Loader.offsetof(type, member) . |
static int |
Pointer.offsetof(Class<? extends Pointer> type,
String member)
Returns
Loader.offsetof(type, member) . |
static int |
Loader.offsetof(Class<? extends Pointer> type,
String member)
Gets
offsetof() values from Loader.memberOffsets filled by native libraries. |
(package private) static void |
Loader.putMemberOffset(Class<? extends Pointer> type,
String member,
int offset)
|
(package private) static void |
Loader.putMemberOffset(Class<? extends Pointer> type,
String member,
int offset)
|
static int |
Loader.sizeof(Class<? extends Pointer> type)
Gets
sizeof() values from Loader.memberOffsets filled by native libraries. |
static int |
Pointer.sizeof(Class<? extends Pointer> type)
Returns
Loader.sizeof(type) . |
static int |
Pointer.sizeof(Class<? extends Pointer> type)
Returns
Loader.sizeof(type) . |
static int |
Loader.sizeof(Class<? extends Pointer> type)
Gets
sizeof() values from Loader.memberOffsets filled by native libraries. |
Modifier and Type | Method and 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, or
null if none |
Pointer |
IntRawIndexer.pointer() |
Pointer |
LongRawIndexer.pointer() |
Pointer |
ShortRawIndexer.pointer() |
Pointer |
UByteRawIndexer.pointer() |
Pointer |
UIntRawIndexer.pointer() |
Pointer |
ULongRawIndexer.pointer() |
Pointer |
UShortRawIndexer.pointer() |
Pointer |
UShortRawIndexer.pointer() |
Pointer |
ULongRawIndexer.pointer() |
Pointer |
UIntRawIndexer.pointer() |
Pointer |
UByteRawIndexer.pointer() |
Pointer |
ShortRawIndexer.pointer() |
Pointer |
LongRawIndexer.pointer() |
Pointer |
IntRawIndexer.pointer() |
Pointer |
Indexer.pointer()
Returns the backing pointer, or
null if none |
Pointer |
HalfRawIndexer.pointer() |
Pointer |
FloatRawIndexer.pointer() |
Pointer |
DoubleRawIndexer.pointer() |
Pointer |
CharRawIndexer.pointer() |
Pointer |
ByteRawIndexer.pointer() |
Pointer |
BooleanRawIndexer.pointer() |
Pointer |
Bfloat16RawIndexer.pointer() |
Copyright © 2024. All rights reserved.