| 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*. |
| Modifier and Type | Class and Description |
|---|---|
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 |
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. |
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.
|
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.limit(long limit)
Sets the limit 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). |
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). |
| Modifier and Type | Method and Description |
|---|---|
static Pointer |
Pointer.calloc(long n,
long size) |
Pointer |
PointerPointer.get() |
Pointer |
PointerPointer.get(long i) |
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 |
Pointer.realloc(Pointer p,
long size) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Pointer.free(Pointer p) |
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) |
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(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). |
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. |
(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. |
| Constructor and Description |
|---|
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(P... array)
Allocates enough memory for the array and copies it.
|
PointerPointer(Pointer p) |
ShortPointer(Pointer p) |
SizeTPointer(Pointer p) |
| Modifier and Type | Method and Description |
|---|---|
Pointer |
ShortRawIndexer.pointer() |
Pointer |
HalfRawIndexer.pointer() |
Pointer |
FloatRawIndexer.pointer() |
Pointer |
CharRawIndexer.pointer() |
Pointer |
LongRawIndexer.pointer() |
Pointer |
ByteRawIndexer.pointer() |
Pointer |
UByteRawIndexer.pointer() |
Pointer |
Indexer.pointer()
Returns the backing pointer, or
null if none |
Pointer |
UShortRawIndexer.pointer() |
Pointer |
IntRawIndexer.pointer() |
Pointer |
DoubleRawIndexer.pointer() |
Copyright © 2016. All rights reserved.