Package | Description |
---|---|
org.bridj |
Modifier and Type | Method and Description |
---|---|
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
PointerIO.getTargetType() ), ensuring the pointer to the memory is aligned to the provided boundary. |
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
PointerIO.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
PointerIO.getTargetType() ) |
static <P> Pointer<P> |
Pointer.pointerToAddress(long peer,
Class<P> targetClass,
Pointer.Releaser releaser)
Create a pointer out of a native memory address
|
static Pointer<?> |
Pointer.pointerToAddress(long peer,
long size,
Pointer.Releaser releaser)
Create a pointer out of a native memory address
|
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 Pointer<?> |
Pointer.pointerToAddress(long peer,
Pointer.Releaser releaser)
Deprecated.
|
static <P> Pointer<P> |
Pointer.pointerToAddress(long peer,
Type targetType,
Pointer.Releaser releaser)
Create a pointer out of a native memory address
|
Pointer<T> |
Pointer.withReleaser(Pointer.Releaser beforeDeallocation)
Deprecated.
This method can easily be misused and is reserved to advanced users.
|
Copyright © 2009-2020. All Rights Reserved.