|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jocl.NativePointerObject
org.jocl.Pointer
public final class Pointer
A Java representation of a void pointer.
| Constructor Summary | |
|---|---|
|
Pointer()
Creates a new (null) Pointer |
protected |
Pointer(java.nio.Buffer buffer)
Creates a Pointer to the given Buffer |
protected |
Pointer(Pointer other)
Copy constructor |
protected |
Pointer(Pointer other,
long byteOffset)
Creates a copy of the given pointer, with an additional byte offset |
| Method Summary | |
|---|---|
static Pointer |
to(java.nio.Buffer buffer)
Creates a new Pointer to the given Buffer. |
static Pointer |
to(byte[] values)
Creates a new Pointer to the given values. |
static Pointer |
to(char[] values)
Creates a new Pointer to the given values. |
static Pointer |
to(double[] values)
Creates a new Pointer to the given values. |
static Pointer |
to(float[] values)
Creates a new Pointer to the given values. |
static Pointer |
to(int[] values)
Creates a new Pointer to the given values. |
static Pointer |
to(long[] values)
Creates a new Pointer to the given values. |
static Pointer |
to(NativePointerObject... pointers)
Creates a new Pointer to the given Pointers. |
static Pointer |
to(NativePointerObject pointer)
Creates a new Pointer to the given Pointer. |
static Pointer |
to(short[] values)
Creates a new Pointer to the given values. |
Pointer |
withByteOffset(long byteOffset)
Returns a new pointer with an offset of the given number of bytes |
| Methods inherited from class org.jocl.NativePointerObject |
|---|
equals, getNativePointer, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pointer()
protected Pointer(java.nio.Buffer buffer)
buffer - The buffer to point toprotected Pointer(Pointer other)
other - The other Pointer
protected Pointer(Pointer other,
long byteOffset)
other - The other pointerbyteOffset - The additional byte offset| Method Detail |
|---|
public static Pointer to(byte[] values)
values - The values the pointer should point to
public static Pointer to(char[] values)
values - The values the pointer should point to
public static Pointer to(short[] values)
values - The values the pointer should point to
public static Pointer to(int[] values)
values - The values the pointer should point to
public static Pointer to(float[] values)
values - The values the pointer should point to
public static Pointer to(long[] values)
values - The values the pointer should point to
public static Pointer to(double[] values)
values - The values the pointer should point to
public static Pointer to(java.nio.Buffer buffer)
buffer - The buffer the pointer should point to
java.lang.IllegalArgumentException - If the given buffer
is null or is neither direct nor has a backing arraypublic static Pointer to(NativePointerObject pointer)
pointer - The pointer the pointer should point to
java.lang.IllegalArgumentException - If the given pointer
is nullpublic static Pointer to(NativePointerObject... pointers)
pointers - The pointers the pointer should point to
java.lang.IllegalArgumentException - If the given array
is nullpublic Pointer withByteOffset(long byteOffset)
byteOffset - The byte offset for the pointer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||