Package | Description |
---|---|
org.bridj | |
org.bridj.cpp.com |
BridJ COM support (Windows-only, working but under-tested).
|
Modifier and Type | Method and Description |
---|---|
static <T> PointerIO<Pointer<T>> |
PointerIO.getArrayInstance(PointerIO<T> targetIO,
long[] dimensions,
int iDimension) |
static PointerIO<Boolean> |
PointerIO.getBooleanInstance() |
static <P> PointerIO<P> |
PointerIO.getBufferPrimitiveInstance(Buffer buffer) |
static PointerIO<Byte> |
PointerIO.getByteInstance() |
static PointerIO<Character> |
PointerIO.getCharInstance() |
static PointerIO<CLong> |
PointerIO.getCLongInstance() |
static PointerIO<Double> |
PointerIO.getDoubleInstance() |
static PointerIO<Float> |
PointerIO.getFloatInstance() |
static <S extends StructObject> |
PointerIO.getInstance(StructIO s) |
static <P> PointerIO<P> |
PointerIO.getInstance(Type type) |
static PointerIO<Integer> |
PointerIO.getIntInstance() |
PointerIO<T> |
Pointer.getIO()
Get the PointerIO instance used by this pointer to get and set pointed values.
|
static PointerIO<Long> |
PointerIO.getLongInstance() |
static PointerIO<Pointer> |
PointerIO.getPointerInstance() |
static <T> PointerIO<Pointer<T>> |
PointerIO.getPointerInstance(PointerIO<T> targetIO) |
static <T> PointerIO<Pointer<T>> |
PointerIO.getPointerInstance(Type target) |
static PointerIO<Short> |
PointerIO.getShortInstance() |
static PointerIO<SizeT> |
PointerIO.getSizeTInstance() |
static PointerIO<TimeT> |
PointerIO.getTimeTInstance() |
Modifier and Type | Method and Description |
---|---|
static <V> Pointer<V> |
Pointer.allocate(PointerIO<V> io)
Create a memory area large enough to hold one item of the type associated to the provided PointerIO instance (see
getTargetType() ) |
static <V> Pointer<V> |
Pointer.allocateAlignedBytes(PointerIO<V> io,
long byteSize,
int alignment,
Pointer.Releaser beforeDeallocation)
Create a memory area large enough to hold byteSize consecutive bytes and return a pointer to elements of the type associated to the provided PointerIO instance (see
getTargetType() ), ensuring the pointer to the memory is aligned to the provided boundary. |
static <V> Pointer<V> |
Pointer.allocateArray(PointerIO<V> io,
long arrayLength)
Create a memory area large enough to hold arrayLength items of the type associated to the provided PointerIO instance (see
getTargetType() ) |
static <V> Pointer<V> |
Pointer.allocateArray(PointerIO<V> io,
long arrayLength,
Pointer.Releaser beforeDeallocation)
Create a memory area large enough to hold arrayLength items of the type associated to the provided PointerIO instance (see
getTargetType() ) |
static <V> Pointer<V> |
Pointer.allocateBytes(PointerIO<V> io,
long byteSize,
Pointer.Releaser beforeDeallocation)
Create a memory area large enough to hold byteSize consecutive bytes and return a pointer to elements of the type associated to the provided PointerIO instance (see
getTargetType() ) |
static <E> NativeList<E> |
Pointer.allocateList(PointerIO<E> io,
long capacity)
Create a
Pointer.ListType.Dynamic list with the provided initial capacity (see Pointer.ListType.Dynamic ). |
<U> Pointer<U> |
Pointer.as(PointerIO<U> newIO)
Cast this pointer to another pointer type
|
static <T> PointerIO<Pointer<T>> |
PointerIO.getArrayInstance(PointerIO<T> targetIO,
long[] dimensions,
int iDimension) |
<U> Pointer<U> |
Pointer.getPointer(PointerIO<U> pio)
Read a pointer value from the pointed memory location
|
<U> Pointer<U> |
Pointer.getPointerAtOffset(long byteOffset,
PointerIO<U> pio)
Read a pointer value from the pointed memory location shifted by a byte offset
|
static <T> PointerIO<Pointer<T>> |
PointerIO.getPointerInstance(PointerIO<T> targetIO) |
<U> Pointer<U>[] |
Pointer.getPointersAtOffset(long byteOffset,
int arrayLength,
PointerIO pio)
Read an array of pointer values from the pointed memory location shifted by a byte offset
|
static <P> Pointer<P> |
Pointer.pointerToAddress(long peer,
long size,
PointerIO<P> io,
Pointer.Releaser releaser)
Create a pointer out of a native memory address
|
static <P> Pointer<P> |
Pointer.pointerToAddress(long peer,
PointerIO<P> io)
Create a pointer out of a native memory address
|
Modifier and Type | Method and Description |
---|---|
static <V> Pointer<V> |
COMRuntime.allocateCOMMemory(long byteCount,
PointerIO<V> pointerIO) |
Copyright © 2009-2020. All Rights Reserved.